Created
November 28, 2017 13:44
-
-
Save kam1kaze/1715060339fc76cfe33534a159cfe3a2 to your computer and use it in GitHub Desktop.
Jenkins tips and tricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// {{ Disable Job DSL script approval | |
import javaposse.jobdsl.plugin.GlobalJobDslSecurityConfiguration | |
import jenkins.model.GlobalConfiguration | |
GlobalConfiguration.all().get(GlobalJobDslSecurityConfiguration.class).useScriptSecurity=false | |
// comment next line if we need to disable it only for current session | |
GlobalConfiguration.all().get(GlobalJobDslSecurityConfiguration.class).save() | |
// }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment