Created
July 31, 2017 09:49
-
-
Save nvtkaszpir/461c8c7962d0a8ce2f187b4e7250493f to your computer and use it in GitHub Desktop.
jenkinsfile create parameter in job
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
pipeline { | |
parameters { | |
choice( | |
name: 'super_choices', | |
choices: 'alpha\nbravo\ncharlie', | |
description: 'its time to choose, default is alpha' | |
) | |
stage("Prepare env") { | |
steps { | |
sh "echo ${params.super_choice}" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment