Merge pull request #583 from birarda/jenkins

fix replacement in post build task
This commit is contained in:
Leonardo Murillo 2013-06-26 14:34:31 -07:00
commit b4dec0cd70

View file

@ -62,7 +62,7 @@ def hifiJob(String targetName, Boolean deploy) {
} }
EscalateStatus true EscalateStatus true
RunIfJobSuccessful 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 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)
}
} }