File tree 1 file changed +2
-2
lines changed
roles/generate-jenkins/templates
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ pipeline {
207
207
steps{
208
208
script{
209
209
env.EXT_RELEASE = sh(
210
- script: '''curl -s https://gitlab.com/api/v4/${EXT_GITLAB_ID}/repository/commits/${EXT_GIT_BRANCH} | jq -r '. | .sha ' | cut -c1-8 ''',
210
+ script: '''curl -s https://gitlab.com/api/v4/projects/ ${EXT_GITLAB_ID}/repository/commits/${EXT_GIT_BRANCH} | jq -r '. | .id ' | cut -c1-8 ''',
211
211
returnStdout: true).trim()
212
212
}
213
213
}
@@ -690,7 +690,7 @@ pipeline {
690
690
{% elif external_type == "github_commit" %}
691
691
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq '. | .commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
692
692
{% elif external_type == "gitlab_commit" %}
693
- curl -s https://gitlab.com/api/v4/${EXT_GITLAB_ID}/repository/commits/${EXT_GIT_BRANCH} | jq '. | .title' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
693
+ curl -s https://gitlab.com/api/v4/projects/ ${EXT_GITLAB_ID}/repository/commits/${EXT_GIT_BRANCH} | jq '. | .title' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
694
694
{% elif external_type == "npm_version" %}
695
695
echo "Updating NPM version of ${EXT_NPM} to ${EXT_RELEASE}" > releasebody.json
696
696
{% elif external_type == "os" %}
You can’t perform that action at this time.
0 commit comments