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

java.lang.NullPointerException with rtNpm install in Container

    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:
    • Environment:

      Description

      Now that version 3.5.0 is out I've attempted numerous times now to build an NPM app with the artifactory plugin inside a container. I've been unsuccessful to do so which always ends with the following:

       
      npm_feature-cicd-216@tmp/artifactory/cache/artifactory-plugin/3.5.0/* org.jfrog.build.extractor.npm.extractor.NpmInstall
      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      Feb 26, 2020 5:08:48 PM org.jfrog.build.extractor.npm.extractor.NpmBuildInfoLogger error
      SEVERE: null
      java.lang.NullPointerException
      at org.jfrog.build.extractor.npm.extractor.NpmCommand.validateNpmVersion(NpmCommand.java:73)
      at org.jfrog.build.extractor.npm.extractor.NpmInstall.execute(NpmInstall.java:51)
      at org.jfrog.build.extractor.npm.extractor.NpmCommand.executeAndSaveBuildInfo(NpmCommand.java:111)
      at org.jfrog.build.extractor.npm.extractor.NpmInstall.main(NpmInstall.java:78)

      java.lang.RuntimeException
      at org.jfrog.build.extractor.npm.extractor.NpmCommand.executeAndSaveBuildInfo(NpmCommand.java:113)
      at org.jfrog.build.extractor.npm.extractor.NpmInstall.main(NpmInstall.java:78)
       
      [org.jfrog.hudson.pipeline.common.Utils.launch(Utils.java:274), org.jfrog.hudson.pipeline.common.executors.NpmExecutor.execute(NpmExecutor.java:62), org.jfrog.hudson.pipeline.common.executors.NpmInstallExecutor.execute(NpmInstallExecutor.java:32), org.jfrog.hudson.pipeline.scripted.steps.NpmInstallStep$Execution.run(NpmInstallStep.java:66), org.jfrog.hudson.pipeline.scripted.steps.NpmInstallStep$Execution.run(NpmInstallStep.java:41), org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47), hudson.security.ACL.impersonate(ACL.java:290), org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44), java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511), java.util.concurrent.FutureTask.run(FutureTask.java:266), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624), java.lang.Thread.run(Thread.java:748)]
       

      I'm following the example used here: https://github.com/yahavi/project-examples/blob/master/jenkins-examples/pipeline-examples/scripted-examples/npm-container-example/Jenkinsfile

       

      I've tried this with the "openjdk:8u212-jdk-alpine" and "timbru31/java-node" but get no where. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yahavi Yahav Itzhak
              Reporter:
              DJThornton Dominique Thornton
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: