简体   繁体   English

Jenkins工件插件不起作用

[英]Jenkins artifactory plugin not working

I have a problem using artifactory and jenkins. 我在使用人工制品和詹金斯时遇到问题。 See the error log below. 请参阅下面的错误日志。

My version jenkins : 1.638 My version of artifactory : 3.9.2 我的版本詹金斯:1.638我的工件版本:3.9.2

Artifactory is working ok and also installed plugin in jenkins and configured. Artifactory可以正常运行,并且还在jenkins中安装了插件并进行了配置。 All seems to work ok but when I want to build a project I have the error below. 一切似乎都正常,但是当我要构建项目时,出现以下错误。

ERROR: Processing failed due to a bug in the code. 
Please report this to jenkinsci-users@googlegroups.com
**java.lang.RuntimeException: java.lang.NullPointerException
    at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136)**
    at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
    at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
    at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    at hudson.model.Run.execute(Run.java:1738)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.NullPointerException
    at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157)
    at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
    ... 9 more
project=hudson.maven.MavenModuleSet@d90cf1[messenger]
project.getModules()=[hudson.maven.MavenModule@3993ad[messenger/com.jdb.software:messenger][messenger/com.jdb.software:messenger][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@3993ad[messenger/com.jdb.software:messenger][messenger/com.jdb.software:messenger][relativePath:]
FATAL: java.lang.NullPointerException

This is actually a bug (since version 2.4.0). 这实际上是一个错误(自2.4.0版开始)。

There is a Jira issue for this (which I guess you opened). 为此存在一个Jira问题 (我想您已经打开了)。

I attached a URL to a snapshot version built on top of the last release (2.4.4) which also contains a fix for you issue. 我将URL附加到基于最新版本(2.4.4)构建的快照版本上,该版本还包含一个针对您的问题的修复程序。

If you have any issues with the fix or for any feedback you can use the Jira to communicate it. 如果您对该修补程序有任何疑问或需要任何反馈,可以使用Jira进行交流。

BTW: There is a work around that you can use - just configure an Artifactory publish task and everything will work. 顺便说一句:您可以使用一种解决方法-只需配置Artifactory发布任务,一切都会正常进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM