From 7443040787afd5bfd69c20064cc585f535df042a Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 26 Jun 2013 14:25:03 -0700 Subject: [PATCH] replace just the script command instead of the full block --- jenkins/jobs.groovy | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jenkins/jobs.groovy b/jenkins/jobs.groovy index 99bf5443fa..114e4389ed 100644 --- a/jenkins/jobs.groovy +++ b/jenkins/jobs.groovy @@ -131,10 +131,11 @@ parameterizedJob.with { } } 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}" - } + 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) } } \ No newline at end of file