Hi, I have the following steps in my jenkinsfile that work pretty well with $GIT_VER=some number in the following step only. stage('Git Checkout') { steps { git(url: 'ssh://mygit/my.git', branch: 'develop') sh '''export GIT_VER=$(git tag -l [0-9].* --points-at origin/develop | tail -n1)
When I add another step in my jenkinsfile environment variable $GIT_VER is blank. Is there a way to set this variable so it applies to each step in Jenkinfile? Thank you for looking into this issue for me. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1482d40a-9e94-4e62-b548-6f91ab469e28%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.