Re: Not able to access groovy variable in shell after upgrading jenkins to 1.X to 2.X
Couple of points:
- Did you review what changes have been added between both versions? This is the upgrade guide page: https://jenkins.io/doc/upgrade-guide/
- Maybe, I'm wrong but did you try to set hudson.model.ParametersAction.keepUndefinedParameters as true ? Further details: https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties .