Skip to content

Instantly share code, notes, and snippets.

@darinpope
Last active August 3, 2022 18:45
Show Gist options
  • Save darinpope/e93b63f744c260cff4748b4f4ebcc3e7 to your computer and use it in GitHub Desktop.
Save darinpope/e93b63f744c260cff4748b4f4ebcc3e7 to your computer and use it in GitHub Desktop.

Gist for https://youtu.be/tPZZDngeiGU

Documentation

Jenkinsfile

pipeline {
  agent any
  parameters {
    choice(name: 'CHOICE', choices: ['One', 'Two', 'Three'], description: 'Pick something')
  }
  stages {
    stage('Example') {
      steps {
        sh "echo Choice: ${params.CHOICE}"
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment