jenkins workflow - SCM environment variables missing -
usually, when using scm git plugin, there bunch of environment variables can use (e.g. see these)
but neither git step nor generic scm seem that.
is there way these variables groovy env.*
can used?
something useful:
def commitmessage = sh 'git log --max-count=1 --oneline --no-merges | cut -b9-'
i can think of writing results file , read them via readfile()
mehtod -- there easier way achieve this?
see jenkins-24141; these variables not yet available workflow.
in meantime, on right track: run git
command record information need, , use readfile
load (see jenkins-26133).
Comments
Post a Comment