Katyayan Vedant Katyayan Vedant - 1 year ago 77
Powershell Question

JENKINS_HOME string getting appended after resolving to actual in powershell

I am using

inside my powershell script, but in jenkins it is getting resolved to the actual path with
getting appended.

for example: I am using


and what in actual is happening is

cd C:\Users\Vedant\.jenkins\jobs\my_job\%JENKINS_HOME%

Answer Source

Try this instead: