try
node('windows') {
def myDir = pwd*()*
bat "echo ${myDir}"
}
/James
On 05/12/2014 14:30, Rupali wrote:
Hi James,
Thanks for quick reply. I tried this. But I get same exception.
Regards,
Rupali
On Friday, December 5, 2014 7:25:51 PM UTC+5:30, James Nord wrote:
Hi Rupali
The following should work
node('windows') {
def myDir = pwd
bat "echo ${myDir}"
}
/James
On 05/12/2014 13:11, Rupali wrote:
Hi,
I am using workflow plugin and in one of the workflow steps, I
would like to know my current directory (full path) and use that
in my bat script.
I tried using pwd command but it gives below error:
groovy.lang.MissingPropertyException: No such property: pwd for
class: WorkflowScript
Can someone advise on how to read current directory path into a
variable which I can use in my bat script?
Regards,
Rupali
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/9ec52e6b-e43f-4e5a-880b-e804b9d0ddba%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/9ec52e6b-e43f-4e5a-880b-e804b9d0ddba%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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/5481DD02.3060607%40teilo.net.
For more options, visit https://groups.google.com/d/optout.