Jenkins Chuck Norris Plugin

依然范特西╮ 提交于 2019-12-08 16:03:15

问题


I setup Jenkins for a CI server and everything seems to be working great. So I thought I would install the Chuck Norris Plugin for some humor. I installed the plugin using the plugin manager but I don't see the option to activate it.

Has anyone done this is there a dependency I need to install to get this to work?


回答1:


You can activate it on the job configuration page. Select "Add post-build action" -> "Activate Chuck Norris".




回答2:


Just run next script in jenkins script concole (http://your_server/jenkins/script or Manage Jenkins > Script Console):

import jenkins.model.*


for(item in Jenkins.instance.items) {
     println("job $item.name")
     item.publishersList.replace(new  hudson.plugins.chucknorris.CordellWalkerRecorder());
}



回答3:


I just had to activate the plugin after I installed it. Most plugins I have used automatically activate. I'm not sure why this one didn't. But that was the fix.



来源:https://stackoverflow.com/questions/17571637/jenkins-chuck-norris-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!