Closed samuelbernardolip closed 4 years ago
This is not working... With NonCPS the credentials don't seem to be defined anymore. Also the debug prints will not appear since the steps are not available in that context. This the warning in the logs:
expected to call eu.indigo.compose.parser.ConfigParser.getConfigSetting but wound up catching eu.indigo.compose.parser.ConfigParser.getDefaultValue; see: https://jenkins.io/redirect/pipeline-cps-method-mismatches/
In getConfigSetting it seems that inside collect there are operations not permitted for Jenkins sandbox. To bypass this limitation I need to annotate the method with NonCPS, so Jenkins will not try to parse and build the methods for serialization. This can be a problem for later consistency. There is another limitation: the variables from Jenkins framework like steps will not be available for the context of methods with NonCPS. So this should be as atomic as possible to avoid later problems. Also this only happened until now with the sqaaas-web in this specific run. I couldn't find in my first review the reason why this violation is only happening here. More details in the following backtrace.