Jenkins声明式管道-如何获取SCM变量

时间:2018-09-19 22:08:13

标签: jenkins-pipeline

与以下用于声明式管道的脚本版本等效吗?

                scmVars = checkout scm
                echo "scmVars: ${scmVars}"
                echo "tagName: ${env.TAG_NAME}"
                echo "branchName: ${env.BRANCH_NAME}"
                echo "changeTarget: ${env.CHANGE_TARGET}"

0 个答案:

没有答案