使用 Hudson 进行 Maven 发布。发布成功,但 Hudson 保持红色

发布于 2024-10-05 01:22:41 字数 1434 浏览 7 评论 0原文

我们正在 Hudson 上使用 Maven 发布插件来自动化发布过程。当我们进行发布时,控制台日志确实表明发布成功并且工件已部署到存储库。但哈德逊仍然保持红色。当我查看 hudson 时,版本是绿色的,项目的所有其他模块都保持红色。

我们的项目结构是。

             parent
               | -------- module 1
               | -------- module 2

模块 1 和模块 2 工件已部署。所有测试都通过了。但当我看哈德森时,它仍然是红色的。

当我查看 hudson 模块控制台日志时,我发现这可能

Started
FATAL: null
java.lang.NullPointerException
    at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:76)
    at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:48)
    at hudson.model.listeners.RunListener.fireStarted(RunListener.java:139)
    at hudson.model.Run.run(Run.java:1243)
    at hudson.maven.MavenBuild.access$600(MavenBuild.java:71)
    at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:453)
    at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:701)
    at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:497)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
    at hudson.model.Run.run(Run.java:1248)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:318)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:129)

是什么原因。任何帮助将不胜感激。我希望哈德森变绿。

We are using the maven release plug-in on Hudson to automate the release process. When we do a release, the console log does say that the release was successful and the artifacts get deployed to the repository. But the hudson still stays red. when I look at hudson, the release is green and all other modules of the project stays red.

The project structure we have is.

             parent
               | -------- module 1
               | -------- module 2

Module 1 and Module 2 artifacts get deployed. all the tests passes. But when I look at hudson, it stays red.

When I look at the hudson module console log, this is what I find,

Started
FATAL: null
java.lang.NullPointerException
    at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:76)
    at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:48)
    at hudson.model.listeners.RunListener.fireStarted(RunListener.java:139)
    at hudson.model.Run.run(Run.java:1243)
    at hudson.maven.MavenBuild.access$600(MavenBuild.java:71)
    at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:453)
    at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:701)
    at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:497)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
    at hudson.model.Run.run(Run.java:1248)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:318)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:129)

What could be the reason. Any help would be appreciated. I want hudson to turn green.

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

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

发布评论

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

评论(1

心奴独伤 2024-10-12 01:22:41

您是否升级了下游构建视图插件?我遇到了这个问题并报告了它,并在最新版本中得到了修复。请参阅http://issues.hudson-ci.org/browse/HUDSON-7691

Have you upgraded the downstream build view plugin? I was having this problem and reported it, and it got fix in the latest version. See http://issues.hudson-ci.org/browse/HUDSON-7691

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