Created
August 2, 2022 12:20
-
-
Save wuhuizuo/157c99951147c4d33ba3729a28a4d897 to your computer and use it in GitHub Desktop.
Jenkins skills
This file contains 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
import javaposse.jobdsl.plugin.GlobalJobDslSecurityConfiguration | |
import jenkins.model.GlobalConfiguration | |
// disable Job DSL script approval | |
GlobalConfiguration.all().get(GlobalJobDslSecurityConfiguration.class).useScriptSecurity=false | |
GlobalConfiguration.all().get(GlobalJobDslSecurityConfiguration.class).save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment