Skip to content

Instantly share code, notes, and snippets.

@nvtkaszpir
Created July 31, 2017 09:49
Show Gist options
  • Save nvtkaszpir/461c8c7962d0a8ce2f187b4e7250493f to your computer and use it in GitHub Desktop.
Save nvtkaszpir/461c8c7962d0a8ce2f187b4e7250493f to your computer and use it in GitHub Desktop.
jenkinsfile create parameter in job
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