mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
Merge pull request #1203 from eclipse/kt_issue1508_downstream
[eclipse/xtext#1508] Fix regression
This commit is contained in:
commit
65667e8616
2 changed files with 4 additions and 4 deletions
|
@ -103,12 +103,12 @@ spec:
|
|||
success {
|
||||
archiveArtifacts artifacts: 'build/**'
|
||||
script {
|
||||
if (TRIGGER_DOWNSTREAM_BUILD=='true') {
|
||||
if (params.TRIGGER_DOWNSTREAM_BUILD==true) {
|
||||
DOWNSTREAM_JOBS.split(',').each {
|
||||
def downstreamUrl = new URL("${env.JENKINS_URL}/job/$it/job/${env.BRANCH_NAME}")
|
||||
def boolean downstreamJobExists = sh(script: "curl -L -s -o /dev/null -I -w '%{http_code}' ${downstreamUrl}", returnStdout: true) == "200"
|
||||
if (downstreamJobExists) {
|
||||
build job: "$it/${env.BRANCH_NAME}", wait: false, parameters: [booleanParam(name: 'TRIGGER_DOWNSTREAM_BUILD', value: "$TRIGGER_DOWNSTREAM_BUILD")]
|
||||
build job: "$it/${env.BRANCH_NAME}", wait: false, parameters: [booleanParam(name: 'TRIGGER_DOWNSTREAM_BUILD', value: "${params.TRIGGER_DOWNSTREAM_BUILD}")]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -53,12 +53,12 @@ pipeline {
|
|||
success {
|
||||
archiveArtifacts artifacts: 'build/**'
|
||||
script {
|
||||
if (TRIGGER_DOWNSTREAM_BUILD=='true') {
|
||||
if (params.TRIGGER_DOWNSTREAM_BUILD==true) {
|
||||
DOWNSTREAM_JOBS.split(',').each {
|
||||
def downstreamUrl = new URL("${env.JENKINS_URL}/job/$it/job/${env.BRANCH_NAME}")
|
||||
def boolean downstreamJobExists = sh(script: "curl -L -s -o /dev/null -I -w '%{http_code}' ${downstreamUrl}", returnStdout: true) == "200"
|
||||
if (downstreamJobExists) {
|
||||
build job: "$it/${env.BRANCH_NAME}", wait: false, parameters: [booleanParam(name: 'TRIGGER_DOWNSTREAM_BUILD', value: "$TRIGGER_DOWNSTREAM_BUILD")]
|
||||
build job: "$it/${env.BRANCH_NAME}", wait: false, parameters: [booleanParam(name: 'TRIGGER_DOWNSTREAM_BUILD', value: "${params.TRIGGER_DOWNSTREAM_BUILD}")]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue