如何获取安装特定插件的 Jenkins 用户?
How to get the Jenkins user who installed specific plugin?
我正在使用 Jenkins,需要支持才能获得已安装插件的列表以及安装它的相应用户?
要获取插件列表,我看不出有任何问题。只需转到选项卡 installed
上的 Jenkins --> Manage Jenkins --> Manage Plugins
,您就会获得已安装插件的完整列表。
如果你也想看看什么工作用了哪个插件,我可以推荐你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
的操作,您将获得 "plugin action":
的完整列表
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>
我正在使用 Jenkins,需要支持才能获得已安装插件的列表以及安装它的相应用户?
要获取插件列表,我看不出有任何问题。只需转到选项卡 installed
上的 Jenkins --> Manage Jenkins --> Manage Plugins
,您就会获得已安装插件的完整列表。
如果你也想看看什么工作用了哪个插件,我可以推荐你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
的操作,您将获得 "plugin action":
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>