Jenkinsfile中 when语句的内置条件以及使用脚本方式判断
例1stage('Master Branch Tasks') { when { branch "master" } steps { sh '''#!/bin/bash -l Do some stuff here ''' }}例2 (not)...