我正在使用Jenkins,需要支持来获取已安装插件的列表以及安装它的相应用户?
要获取插件列表,我没有发现任何问题。只需转到选项卡Jenkins --> Manage Jenkins --> Manage Plugins
上的installed
,您将获得已安装插件的完整列表。如果您还想查看正在使用哪个插件的作业,我可以为您推荐Plugin Usage Plugin
。您将获得一个名为Plugin Usage
的新配置选项。在这里,您还可以看到所有插件及其使用位置。
现在是您的真正问题:您可以在jenkins.log
文件中找到该信息。
Sep 30, 2019 4:04:46 PM hudson.model.UpdateCenter$DownloadJob run
INFO: Starting the installation of <Plugin> on behalf of <Username>
因此,如果您执行类似grep "INFO: Starting the" jenkins.log
的操作,则会获得“插件操作”的完整列表:
INFO: Starting the downgrade of AnsiColor on behalf of <Username>
INFO: Starting the installation of AnsiColor on behalf of <Username>
INFO: Starting the installation of NAnt on behalf of <Username>