Skip to content

Commit bc1cdf1

Browse files
author
R. Tyler Croy
authored
Merge pull request #44 from stefancrain/patch-1
Updates to avoid Scripts not permitted ...
2 parents 2e487b8 + 4fbfa00 commit bc1cdf1

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)