I have few problems locating scm related variables:
In scripted pipeline I used this:
scmVars = checkout scm
echo "scmVars: ${scmVars}"
echo "tagName: ${env.TAG_NAME}"
echo "branchName: ${env.BRANCH_NAME}"
echo "changeTarget: ${env.CHANGE_TARGET}"
Since in declarative one I dont need to checkout, how do I get hang of
variables?
env.TAG_NAME, env.BRANCH_NAME all coming up null.
is see 'branch' is used in conditional 'when' expression
when {
branch 'master'
}
but how many such variables are available ?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/210db091-d249-4483-a263-96bcf5a14df1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.