I have a jenkinsfile that defines a pipeline. In there, I declared a step which invokes the powerhell pipeline plugin and I am trying to use the jenkins environment variables as well as a build parameter with no success. See my step definition below:
stage('publish') {
steps {
powershell returnStatus: true, script: '$(env:WORKSPACE)\\ci\\scripts\\publish-$(BRANCH).ps1'
}
}
Any help/insight will be greatly appreciated.