Skip to content

Instantly share code, notes, and snippets.

@wuhuizuo
Created August 2, 2022 12:20
Show Gist options
  • Save wuhuizuo/157c99951147c4d33ba3729a28a4d897 to your computer and use it in GitHub Desktop.
Save wuhuizuo/157c99951147c4d33ba3729a28a4d897 to your computer and use it in GitHub Desktop.
Jenkins skills
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