Disable Jenkins remote CLI

This commit is contained in:
Tomasz Sęk 2019-06-10 17:23:32 +02:00
parent 243f5ca3f9
commit a835c64524
No known key found for this signature in database
GPG Key ID: DC356D23F6A644D0
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ def remove = { list ->
remove(jenkins.getExtensionList(RootAction.class))
remove(jenkins.actions)
jenkins.getDescriptor("jenkins.CLI").get().setEnabled(false)
jenkins.save()
`