pipeline { environment { BRANCH_TO_DEPLOY = "master" } agent none stages { stage('Deploy') { agent { label 'docker' } when { branch "${BRANCH_TO_DEPLOY}" } steps { // Just get helm3 for testing sh 'wget https://get.helm.sh/helm-v3.0.3-linux-amd64.tar.gz https://get.helm.sh/helm-v3.0.3-linux-amd64.tar.gz.sha256' } } } }