It is either dir or pwd step, I don't recall which of the top of my head but 
one of those will return it for you.

On 4 February 2015 22:28:49 GMT+00:00, Shane Kim <shinstu...@gmail.com> wrote:
>maybe it's simple thing but I just couldn't find or get it working. How
>
>would I get the current workspace directory path?
>I've tried these:
>
>env.WORKSPACE // gives me null
>new File('.') // gives me Jenkins installation path rather than
>workspace
>ws { new File('.') } // gives me Jenkins installation path again.
>
>
>Any hints?
>
>Thanks,
>s.
>
>-- 
>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/157d75a7-365d-454b-8d57-2b4d4e271271%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

-- 
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/C679BC1C-BA9D-45DD-83EA-211D4FD3F5CD%40teilo.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to