安装Jenkins插件的问题

时间:2016-04-04 13:55:36

标签: plugins jenkins continuous-integration jenkins-plugins

定义代理设置后,它开始工作。请参阅文档:Jenkins Behind Proxy -> How Jenkins handles Proxy Servers

我想用Jenkins设置我的CI环境(托管在Windows 2008 Server上)。我使用Jenkins安装程序从二进制文件安装了Jenkins,可以使用localhost:8080在浏览器中调用它。

现在我想安装一些插件,但存在多个问题:

当我通过Jenkins CLI(例如java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin git)尝试时:

$ java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin crap4j
crap4j is neither a valid file, URL, nor a plugin artifact name in the update center
No update center data is retrieved yet from: http://updates.jenkins-ci.org/update-center.json
crap4j looks like a short plugin name. Did you mean ▒null▒?
Apr 04, 2016 3:32:46 PM hudson.remoting.RemoteInvocationHandler$Unexporter run
WARNING: Couldn't clean up oid=3 from null
hudson.remoting.ChannelClosedException: channel is already closed
        at hudson.remoting.Channel.send(Channel.java:578)
        at hudson.remoting.RemoteInvocationHandler$PhantomReferenceImpl.cleanup(RemoteInvocationHandler.java:360)
        at hudson.remoting.RemoteInvocationHandler$PhantomReferenceImpl.access$700(RemoteInvocationHandler.java:319)
        at hudson.remoting.RemoteInvocationHandler$Unexporter.run(RemoteInvocationHandler.java:420)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException
        at hudson.remoting.Channel.close(Channel.java:1163)
        at hudson.remoting.Channel.close(Channel.java:1138)
        at hudson.cli.CLI.close(CLI.java:329)
        at hudson.cli.CLI._main(CLI.java:511)
        at hudson.cli.CLI.main(CLI.java:390)

由于我无法解决此问题

  1. 好吧,我尝试通过Jenkins GUI安装插件 - 但“Manage Pligins”中“Available”选项卡的内容为空。

  2. 好的,最后一次机会:手动安装。所以我按照显示的docu执行了操作:转到list of the plugins上的wiki.jenkins-ci.org,下载插件,将它们放到$JENKINS_HOME/plugins,然后重新启动Jenkins({{1} })。

  3. 我总共有11个插件(或尝试过)。对于所有插件,都是在java -jar jenkins-cli.jar -s http://localhost:8080/ restart中自动创建的插件文件夹(例如$JENKINS_HOME/plugins)。但是:一些插件(Clover PHP,Crap4J,JDepend,Plot,Violations和xUnit)现在显示在已安装的插件中​​ - 而另一个(Git,HTML Publisher,DRY,PMD)没有。

    是否可以安装这些插件而不显示?为什么?怎么检查这个?

    如何安装插件?

0 个答案:

没有答案