Re: env variable to be set across jenkinfile for each step

2018-10-28 Thread npwork101
Thank you for your reply. I did try what you had suggested, but it did not work. But i could be doing something wrong as well. Here is my step. pipeline { agent any stages { stage('Checkout') { steps { script { git(url: 'ssh://my.git', branch: 'testing', changel

env variable to be set across jenkinfile for each step

2018-10-19 Thread npwork101
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/de