How to get a list of installed Jenkins plugins with name and version pair

前端 未结 21 2210
误落风尘
误落风尘 2020-11-30 17:14

How can I get a list of installed Jenkins plugins?

I searched the Jenkins Remote Access API document, but it was not found. Should I use Jenkins\' CLI? Is there a d

21条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 17:42

    If Jenkins run in a the Jenkins Docker container you can use this command line in Bash:

    java -jar /var/jenkins_home/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ list-plugins --username admin --password `/bin/cat /var/jenkins_home/secrets/initialAdminPassword`
    

提交回复
热议问题