Created
August 1, 2019 17:53
-
-
Save jrich523/e9c47b99805627d3da456010cc4b9f0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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