Skip to content

Instantly share code, notes, and snippets.

@jrich523
Created August 1, 2019 17:53
Show Gist options
  • Save jrich523/e9c47b99805627d3da456010cc4b9f0e to your computer and use it in GitHub Desktop.
Save jrich523/e9c47b99805627d3da456010cc4b9f0e to your computer and use it in GitHub Desktop.
properties([
parameters([
string(name: 'DEPLOY_TEXT', defaultValue: 'defVal', description: '')
])
])
echo "direct value: ${DEPLOY_TEXT}"
echo "param value: ${params.DEPLOY_TEXT}"
if(DEPLOY_TEXT == 'justin') {
currentBuild.result = 'FAILURE'
}
stage 'downstream'
def job = build job: "../jenkins-test/args-p", parameters: [
string(name: 'DEPLOY_TEXT', value: 'from parent!')
]
echo "Job Result: ${job.getResult()} - ${job.getAbsoluteUrl()}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment