Skip to content

Instantly share code, notes, and snippets.

@kam1kaze
Created November 28, 2017 13:44
Show Gist options
  • Save kam1kaze/1715060339fc76cfe33534a159cfe3a2 to your computer and use it in GitHub Desktop.
Save kam1kaze/1715060339fc76cfe33534a159cfe3a2 to your computer and use it in GitHub Desktop.
Jenkins tips and tricks
// {{ 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