简体   繁体   中英

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

Artifactory is working ok and also installed plugin in jenkins and configured. 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).

There is a Jira issue for this (which I guess you opened).

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.

If you have any issues with the fix or for any feedback you can use the Jira to communicate it.

BTW: There is a work around that you can use - just configure an Artifactory publish task and everything will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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