mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 00:55:42 +02:00
Merge pull request #583 from birarda/jenkins
fix replacement in post build task
This commit is contained in:
commit
b4dec0cd70
1 changed files with 9 additions and 1 deletions
|
@ -62,7 +62,7 @@ def hifiJob(String targetName, Boolean deploy) {
|
|||
}
|
||||
EscalateStatus true
|
||||
RunIfJobSuccessful true
|
||||
script "curl -d action=deploy-dev -d role=highfidelity_dev-grid -d \"revision=${targetName}\" https://${ARTIFACT_DESTINATION}"
|
||||
script "curl -d 'action=deploy&role=highfidelity-live&revision=${targetName}' https://${ARTIFACT_DESTINATION}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -130,4 +130,12 @@ parameterizedJob.with {
|
|||
node / 'wipeOutWorkspace' << true
|
||||
}
|
||||
}
|
||||
configure { project ->
|
||||
def curlCommand = 'curl -d action=hifidevgrid -d "hostname=$HOSTNAME" ' +
|
||||
'-d "github_user=$GITHUB_USER" -d "build_branch=$GIT_BRANCH" ' +
|
||||
"-d \"revision=\$TARGET\" https://${ARTIFACT_DESTINATION}"
|
||||
|
||||
(project / publishers / 'hudson.plugins.postbuildtask.PostbuildTask' /
|
||||
tasks / 'hudson.plugins.postbuildtask.TaskProperties' / script).setValue(curlCommand)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue