On Monday, December 8, 2014 4:09:34 AM UTC-5, Rupali wrote:
>
> But below produces output as *Current directory is: ${myDir}*
> node('windows') {
> def myDir = pwd()
> bat '''echo "Current directory is:"
> echo ${myDir}'''
> }
>
> Am I missing some syntax in multiple line batch script?
>
Groovy question. Use
bat """echo "Current directory is:"
echo ${myDir}"""
or
bat(/
echo "Current directory is:"
echo ${myDir}
/)
etc.
--
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/96cad274-43c6-4cff-a43f-7b2928eeb055%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.