pipeline { agent any parameters { booleanParam(defaultValue: true, description: 'blabla?', name: 'userFlag') } stages { stage("foo") { steps { echo "flag: ${params.userFlag}" } } post { always { echo "this is always printed" } } } }