Gist for https://youtu.be/k0gnxnf3Rdw
pipeline {
agent any
parameters {
booleanParam defaultValue: true, description: 'Is this a debug build?', name: 'DEBUG_BUILD'
}
stages {
stage('Example') {
steps {
sh "echo 'DEBUG_BUILD': ${params.'DEBUG_BUILD'}"
}
}
}
}