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

前端 未结 21 2254
误落风尘
误落风尘 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:27

    You can be also interested what updates are available for plugins. For that, you have to merge the data about installed plugins with information about updates available here https://updates.jenkins.io/current/update-center.json .

    To parse the downloaded file as a JSON you have to read online the second line (which is huge).

提交回复
热议问题