Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are essentially three ways of enabling the access control mechanism, through the web UI or by manipulating the file system directly.:

  1. Through web UI, go to http://jenkins/configureSecurityand check "Enable Agent → Master Access Control" option.
  2. Through file system, create or edit the file $JENKINS_HOME/secrets/slave-to-master-security-kill-switch

...

  1.  so that it contains false.
  2. Using a Groovy Hook Script and doing something like this:

 

  1. Code Block
    languagegroovy
    import jenkins.security.s2m.AdminWhitelistRule
    import jenkins.model.Jenkins
    Jenkins.instance.getInjector().getInstance(AdminWhitelistRule.class)
    .setMasterKillSwitch(false)

...

Disable the access control mechanism altogether

...