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

NullPointerException when downloading using file spec with "build"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.6.0
    • Component/s: None
    • Labels:
      None

      Description

      When downloading files from Artifactory using file specs, which include "pattern" and "build", the following NullPointerException is thrown, in case some of the files retrieved by the provided pattern are not included in the specified build:
      java.lang.NullPointerException
      at org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.filterAqlSearchResultsByBuild(AqlHelperBase.java:180)
      at org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.filterResult(AqlHelperBase.java:233)
      at org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.run(AqlHelperBase.java:52)
      at org.jfrog.build.extractor.clientConfiguration.util.ArtifactorySearcher.SearchByFileSpec(ArtifactorySearcher.java:39)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:85)
      at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.downloadArtifactsBySpec(SpecsHelper.java:140)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:51)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:21)
      at hudson.FilePath.act(FilePath.java:1075)
      at hudson.FilePath.act(FilePath.java:1058)
      at org.jfrog.hudson.pipeline.common.executors.GenericDownloadExecutor.execute(GenericDownloadExecutor.java:49)
      at org.jfrog.hudson.pipeline.scripted.steps.DownloadStep$Execution.run(DownloadStep.java:73)
      at org.jfrog.hudson.pipeline.scripted.steps.DownloadStep$Execution.run(DownloadStep.java:52)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      at hudson.security.ACL.impersonate(ACL.java:290)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
        

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            eyalb Eyal Ben Moshe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: