You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jenkinsfile is doing a lot of weird meta-magic. In hindsight, none of this should be necessary.
Create a function in the ./vars folder, and execute the Jenkinsfile closures there. That should give us a reference to all the Jenkinsfile DSL methods, and remove the need to do the meta-magic in Jenkinsfile.
Some versions of the pipeline plugin are showing CPS mismatch errors. Eg: expected to call DefaultEnvironmentPlugin.withEnv but wound up catching Jenkinsfile.invokeMethod; see: https://jenkins.io/redirect/pipeline-cps-method-mismatches/ [Pipeline] withEnv. Fix the CPS errors as part of this cleanup.
The text was updated successfully, but these errors were encountered:
kmanning
changed the title
Simplify Jenkinsfile
Fix CPS mismatch errors, reduce meta magic in Jenkinsfile.groovy
Mar 16, 2020
kmanning
changed the title
Fix CPS mismatch errors, reduce meta magic in Jenkinsfile.groovy
Fix CPS mismatch errors, reduce meta magic in Jenkinsfile.groovy and Stage decorations
Mar 18, 2020
expected to call DefaultEnvironmentPlugin.withEnv but wound up catching Jenkinsfile.invokeMethod; see: https://jenkins.io/redirect/pipeline-cps-method-mismatches/ [Pipeline] withEnv
. Fix the CPS errors as part of this cleanup.The text was updated successfully, but these errors were encountered: