You need to use triple double quotes for string interpolation to work: bat """
""" On Thu, May 2, 2019 at 5:59 AM zakyn <zakvladi...@gmail.com> wrote: > Hello, > > I have this code and the env.variables are not resolved :( I do not see > the reason. > > Thank you for your help. > > Vladimir > > Code: > > stage('My stage'){ > steps{ > bat ''' > cd folder\\folder1 > > ..\\..\\..\\folder1\\folder1\\folder1\\python.exe > ..\\..\\folder1\\folder1\\action.py ..\\..\\ ..\\..\\_build > ${env.JOB_NAME}#${env.BUILD_NUMBER} param param > ''' > } > } > > > -- > 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/fe42b096-fa21-4882-8d20-f8a8c14a77c0%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/fe42b096-fa21-4882-8d20-f8a8c14a77c0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Website: http://earl-of-code.com -- 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/CAPiUgVfxnr8Rh_7HtPyVmHWfM%3DSS-Fnt-e025fncnmewCrwY1g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.