replace just the script command instead of the full block

This commit is contained in:
Stephen Birarda 2013-06-26 14:25:03 -07:00
parent 177ddd889d
commit 7443040787

View file

@ -131,10 +131,11 @@ parameterizedJob.with {
} }
} }
configure { project -> configure { project ->
project / 'publishers' / 'hudson.plugins.postbuildtask.PostbuildTask' / 'tasks' / 'hudson.plugins.postbuildtask.TaskProperties' { def curlCommand = 'curl -d action=hifidevgrid -d "hostname=$HOSTNAME" ' +
script 'curl -d action=hifidevgrid -d "hostname=$HOSTNAME" ' + '-d "github_user=$GITHUB_USER" -d "build_branch=$GIT_BRANCH" ' +
'-d "github_user=$GITHUB_USER" -d "build_branch=$GIT_BRANCH" ' + "-d \"revision=\$TARGET\" https://${ARTIFACT_DESTINATION}"
"-d \"revision=\$TARGET\" https://${ARTIFACT_DESTINATION}"
} (project / publishers / 'hudson.plugins.postbuildtask.PostbuildTask' /
tasks / 'hudson.plugins.postbuildtask.TaskProperties' / script).setValue(curlCommand)
} }
} }