It happens because EnvVars object contains less variables in "pipeline" 
mode than in "Freestyle". 

Do not know how to deal with it in your case.

On Monday, May 22, 2017 at 5:56:22 PM UTC+3, Thiago Carvalho Davila wrote:
>
> Hi,
>
> I am trying to get WORKSPACE folder from jenkins global enviroment 
> variables. The strange thing is I get null on the response:
>
> PATH_CI_TOOLS="${env.WORKSPACE}\\tools_ci"
> pipeline {
>     stages {
>         stage('Test'){
>             steps{
>                 bat "${PATH_CI_TOOLS}\\MyProject.exe"
>             }
>         }
>     }
> }
>
>
>
> Return:
>
> null\tools_ci\MyProject.exe
> The system cannot find the path specified.
>
>
> -
>
>
> "Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), 
> empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é 
> enviada exclusivamente a seu destinatário e pode conter informações 
> confidenciais, protegidas por sigilo profissional. Sua utilização 
> desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a 
> recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, 
> esclarecendo o equívoco."
>
> "This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a 
> government company established under Brazilian law (5.615/70) -- is 
> directed exclusively to its addressee and may contain confidential data, 
> protected under professional secrecy rules. Its unauthorized use is illegal 
> and may subject the transgressor to the law's penalties. If you're not the 
> addressee, please send it back, elucidating the failure."
>

-- 
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/1e080b2b-da71-434b-9bd1-b746fa455f05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to