From 177ddd889ddc6ea691f3fccc2d8fd2b174bd5b30 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 26 Jun 2013 13:33:35 -0700 Subject: [PATCH] differentiate dev grid and live deploy cURLs --- jenkins/jobs.groovy | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jenkins/jobs.groovy b/jenkins/jobs.groovy index c5991e3879..99bf5443fa 100644 --- a/jenkins/jobs.groovy +++ b/jenkins/jobs.groovy @@ -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,11 @@ parameterizedJob.with { node / 'wipeOutWorkspace' << true } } + configure { project -> + project / 'publishers' / 'hudson.plugins.postbuildtask.PostbuildTask' / 'tasks' / 'hudson.plugins.postbuildtask.TaskProperties' { + script 'curl -d action=hifidevgrid -d "hostname=$HOSTNAME" ' + + '-d "github_user=$GITHUB_USER" -d "build_branch=$GIT_BRANCH" ' + + "-d \"revision=\$TARGET\" https://${ARTIFACT_DESTINATION}" + } + } } \ No newline at end of file