Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-665

NullPointerException when trying to build (publishing to artifactory not enabled)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.4.1, 2.4.4
    • Fix Version/s: 2.4.5
    • Component/s: None
    • Labels:
      None

      Description

      A simple project that is only set to retrieve artifacts from artifactory (not publish them) failed to build.

      Builds that have all artifactory features turned off are fine as are the ones that publish to Artifactory using the "Deploy artifacts to artifactory" post build action. Removing the post build action while still using some of the artifactory plugin functionality causes the following error.

      The workaround is not to use Artifactory plugin.

      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:941)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:381)
      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@1bc3d9f[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)]
      project.getModules()=[hudson.maven.MavenModule@3d7897[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][relativePath:parent]]
      project.getRootModule()=hudson.maven.MavenModule@3d7897[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][relativePath:parent]
      FATAL: java.lang.NullPointerException
      java.lang.RuntimeException: java.lang.NullPointerException
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:381)
      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aviads Aviad Shikloshi (Inactive)
                Reporter:
                tro Tomáลก Rohrbacher
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: