标签: powershell plugins jenkins
我无法将变量传递到Jenkins的Windows Powershell构建步骤中。我试过了:
$env:JENKINS_HOME ${JENKINS_HOME}
我仍然无法让它发挥作用。作为测试,我尝试了:
$JENKINS_HOME=$env:JENKINS_HOME Write-Host 'This is $JENKINS_HOME'
,输出只是This is $JENKINS_HOME。是什么给了什么?
This is $JENKINS_HOME