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 get the @script Path? 

On Tuesday, September 20, 2016 at 9:34:29 AM UTC+2, 
> 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 when the job runs in 
> parallel we also have numbering in the paths.
> Since I'm writing coded pipelines ... I could live with that if I could see
> how to access the individial paths. I have not found documentation on this.
> Anybody who could help please?
> Kind regards,
> Thomas

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 view this discussion on the web visit
For more options, visit

Reply via email to