pipeline { agent any parameters { gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH' } stages { stage('Show the branch') { steps { sh '/bin/true' echo "${params.BRANCH}" } } } }