Skip to content

Commit 4fbfa00

Browse files
authored
Updates to avoid Scripts not permitted ...
references /pull/3
1 parent 2e487b8 commit 4fbfa00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pipeline-examples/get-build-cause/getBuildCause.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ def causes = currentBuild.rawBuild.getCauses()
88
// if present.
99
def specificCause = currentBuild.rawBuild.getCause(hudson.model.Cause$UserIdCause)
1010

11+
// If you see errors regarding 'Scripts not permitted to use method...' approve
12+
// these scripts at JENKINS_URL/scriptApproval/ - the UI shows the blocked methods
13+
1114
// See the Javadoc for Cause for more information on what's in Causes, etc at:
1215
// http://javadoc.jenkins-ci.org/hudson/model/class-use/Cause.html

0 commit comments

Comments
 (0)