Katyayan Vedant Katyayan Vedant - 2 months ago 7
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%


Try this instead: