Re: Jenkins pipeline: how to get the different paths

2016-09-20 Thread Baptiste Mathus
What are you trying to do? At first sight, seems to me you're on the path of pain. You seem to be to developing things somehow in the "user" space relying on internal things that may change without any notice IMO. Just my 2 cents Le 20 sept. 2016 11:10 AM, a écrit : > One information is "*pwd(

Re: Jenkins pipeline: how to get the different paths

2016-09-20 Thread thomas . lehmann
One information is "*pwd(tmp:true)*" which provides the @tmp path. When same job runs two times in parallel the path provided by pwd(...) returns a path with additionally a number. Current path:/var/lib/jenkins/workspace/Foo@2 Temp path:/var/lib/jenkins/workspace/Foo@2@tmp *Remains*: how do I

Jenkins pipeline: how to get the different paths

2016-09-20 Thread thomas . lehmann
Hi, writing a Jenkinsfile like this: node{ def WORKSPACE=pwd() } The path is initially empty. The content is stored at pwd() + "@script". So basically I could use two variables - def WORK_PATH=pwd() - def SOURCES=pwd() + "@script" However there is also a @tmp path for the project and whe