添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

The following HOWTO shows how you can get a list of Jenkins Plugin’s without the dreaded message

ERROR: anonymous is missing the Overall/Read permission
This is designed to be run from the Jenkins Server itself (and replace placeholder admin:test with your username:password):
1. Get the Jenkins CLI
curl ‘localhost:8080/jnlpJars/jenkins-cli.jar’ > jenkins-cli.jar
2. Authenticatation Test
# java -jar jenkins-cli.jar -s http://localhost:8080 -auth admin:test who-am-i
Authenticated as: admin
Authorities:
authenticated
# cat plugins.groovy
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
plugins.each {println “${it.getShortName()}: ${it.getVersion()}”}

4. Run the script – save the output

java -jar jenkins-cli.jar -s http://localhost:8080 -auth admin:test groovy = < plugins.groovy > plugins.txt

5. Test the Output

# head -10 plugins.txt
pipeline-rest-api: 2.10
script-security: 1.44
command-launcher: 1.2
handlebars: 1.1.1
cloudbees-folder: 6.4
jsch: 0.1.54.2
bouncycastle-api: 2.16.2
docker-commons: 1.11
structs: 1.14
workflow-step-api: 2.14

Articles Used/Further Reading:
  • Fixing Jenkins CLI ‘ERROR: anonymous is missing the Overall/Read permission’
  • Jenkins Installed Plugins List
  • Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Cookie Policy