Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (4 sloc) 240 Bytes
// https://stackoverflow.com/questions/44501596/jenkins-disable-cli-over-remoting-via-a-groovy-script
import jenkins.model.Jenkins
jenkins.model.Jenkins.instance.getDescriptor("jenkins.CLI").get().setEnabled(false)
Jenkins.instance.save()
You can’t perform that action at this time.