It was pwd, but I had to call 'toString' after pwd() 'cause it returns ArrayList.
Thanks! On Thursday, February 5, 2015 at 12:25:01 AM UTC-8, James Nord wrote: > > 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 <[email protected] > <javascript:>> 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. >> >> > -- > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/36c84063-f54d-4af3-9fd5-edd2497f8029%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
