Re: Pass variable from 1 job to other job with seperate jenkinsfiles

2017-08-29 Thread Michael Pailloncy
Hey. IIUC, this should be possible. Can you show us the content of your Jenkinsfiles please ? 2017-08-29 21:07 GMT+02:00 Werner Dijkerman : > Hi, > > I have an issue and I don't get it to work. > > I have 2 Jenkinsfiles and thus 2 jobs. With the first Jenkinsfile I set an >

Pass variable from 1 job to other job with seperate jenkinsfiles

2017-08-29 Thread Werner Dijkerman
Hi, I have an issue and I don't get it to work. I have 2 Jenkinsfiles and thus 2 jobs. With the first Jenkinsfile I set an variable by reading a specific file, in this case: def commit_id = readFile('.git/commit-id').trim() Now I need to pass this 'commit_id' variable from the 1st