jenkins-infra / stories

A static site for the Jenkins is the way
https://stories.jenkins.io
Apache License 2.0
3 stars 16 forks source link

chore(pipeline) ensure that production deployment reports its status #17

Closed dduportal closed 1 year ago

dduportal commented 1 year ago

The call to recordDeployment() in the post block fails with the following message:

19:04:24  org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (org.jenkinsci.plugins.workflow.cps.CpsClosure2 recordDeployment java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String)

=> the method signature is incorrect as per https://github.com/jenkins-infra/pipeline-library/blob/master/vars/recordDeployment.groovy#LL1C56-L1C66.

This PR fixes this issue (tested with a replay on infra.ci.jenkins.io)