Jetty 上的 Jenkins - 无法更新插件

发布于 2025-01-02 23:23:16 字数 523 浏览 3 评论 0原文

我正在寻求一些针对我遇到的问题的指示。

我正在 CentOS 5.5 上安装 Jenkin 1.450。 Java 已安装并且 JAVA_HOME 已正确设置。 我在 Jetty 8.0.4 上部署了 Jenkins。我下载了 Jetty 并解压到用户目录中。 Jenkins 部署到 Jetty 的 webapps 目录中。

然后我在 Jetty 目录之外创建了一个目录,并将 JENKINS_HOME 设置为该目录。然后我还将 JETTY_HOME 设置为提取的 jetty 目录。然后我使用 jetty.sh 脚本运行 Jetty,您可以在 /bin 中找到该脚本。

一切运行良好,我可以添加用户等。然后从“管理插件”部分我看到有一个更新的 svn 插件,所以我想更新它。所以我开始更新过程。最后 Jenkins 告诉我“subversion 插件已经安装。需要重新启动 Jenkins 才能使更新生效”——所以我重新启动了 Jetty。然而,现在检查 svn 的版本仍然和以前一样,它再次告诉我有新版本。

有人可以告诉我我哪里做错了吗?

谢谢!

I am after some pointers to the problem I have.

I am installing Jenkin 1.450 on CentOS 5.5. Java has been installed and JAVA_HOME had been set properly.
I deployed Jenkins on Jetty 8.0.4. I downloaded Jetty and extracted onto a user's directory. Jenkins is deployed to Jetty's webapps directory.

Then I created a directory outside Jetty's directory, and set JENKINS_HOME to that directory. Then I also set JETTY_HOME to the extracted jetty directory. Then I run Jetty using jetty.sh script which you can find in /bin.

All worked well and I can add users etc. Then from "Manage Plugins" section I see that there is a newer svn plugins, so I want to update it. So I begin the update process. At the end Jenkins tells me "subversion plugin is already installed. Jenkins needs to be restarted for the update to take effect" - so I restarted Jetty. However, checking the version of svn now it was still the same as before and it tells me again there is a new version.

Can somebody tells me where I did wrong?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

〃温暖了心ぐ 2025-01-09 23:23:17

你的设置很好。问题出在 Jenkins 本身,并且在 JIRA 上为此打开了一个错误:

虽然这个问题已在 1.450 版中的新插件中得到解决,但它仍然存在于升级功能中。

相关错误:

Your set up is good. The issue is with Jenkins itself, and a bug has been opened for this on their JIRA:

While this issue was resolved for new plugins in version 1.450, it remains in the upgrade feature.

Related bugs:

私藏温柔 2025-01-09 23:23:17

我今天遇到了同样的问题 =)

我尝试在上下文中设置各种内容:

  <Call class="java.lang.System" name="setProperty"> <Arg>HUDSON_HOME</Arg> <Arg>/opt/jenkins</Arg> </Call>
  <Call class="java.lang.System" name="setProperty"> <Arg>JENKINS_HOME</Arg> <Arg>/opt/jenkins</Arg> </Call>

但是最后唯一有效的方法是打开 WAR 并将以下内容添加到 WEB-INF/web.xml (其中 /opt /jenkins 是我的 jenkins 家)

  <env-entry>
    <env-entry-name>HUDSON_HOME</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>/opt/jenkins</env-entry-value>
  </env-entry>

一旦我这样做了,所有以前安装/升级的插件都被标记为缺失,我们就会呈现。

I've had the same issue today =)

I tried setting various things in the context:

  <Call class="java.lang.System" name="setProperty"> <Arg>HUDSON_HOME</Arg> <Arg>/opt/jenkins</Arg> </Call>
  <Call class="java.lang.System" name="setProperty"> <Arg>JENKINS_HOME</Arg> <Arg>/opt/jenkins</Arg> </Call>

However in the end the only thing that worked was to crack open the WAR and add the following to WEB-INF/web.xml (where /opt/jenkins is my jenkins home)

  <env-entry>
    <env-entry-name>HUDSON_HOME</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>/opt/jenkins</env-entry-value>
  </env-entry>

As soon as I did this all the previous installed/upgraded plugins that were marked as missing we present.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文