上传项目图片:“Jenkins Artifactory Plug-in”
  1. Jenkins Artifactory插件
  2. hap - 1299

nullpointerexception与rtNpm安装在容器

    XML 可打印的

    细节

    • 类型: 错误
    • 状态: Resolved
      A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决
    • 解决方法: 完成
    • 影响版本/ s: 3.5.0
    • 修复版本/ s: 3.6.0
    • 组件/ s: 没有一个
    • 标签:
    • 环境:

      描述

      现在3.5.0版本出来了,我已经尝试了无数次在容器中使用artifactory插件来构建一个NPM应用程序。我这样做都不成功,结果总是这样:


      npm_feature蔡先生- 216 @tmp / artifactory /缓存/ artifactory-plugin / 3.5.0 / * org.jfrog.build.extractor.npm.extractor.NpmInstall
      SLF4J:加载类“org.slf4j.impl.StaticLoggerBinder”失败。
      SLF4J:默认为无操作(NOP)日志记录器实现
      SLF4J:看http://www.slf4j.org/codes.html#StaticLoggerBinder欲知详情。
      Feb 26, 2020 5:08:48 PM org.jfrog.build.extractor.npm.extractor.NpmBuildInfoLogger错误
      严重:零
      java.lang.NullPointerException
      org.jfrog.build.extractor.npm.extractor.NpmCommand.validateNpmVersion (NpmCommand.java: 73)
      在org.jfrog.build.extractor.npm.extractor.NpmInstall.execute (NpmInstall.java: 51)
      org.jfrog.build.extractor.npm.extractor.NpmCommand.executeAndSaveBuildInfo (NpmCommand.java: 111)
      org.jfrog.build.extractor.npm.extractor.NpmInstall.main (NpmInstall.java: 78)

      java.lang.RuntimeException
      org.jfrog.build.extractor.npm.extractor.NpmCommand.executeAndSaveBuildInfo (NpmCommand.java: 113)
      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.npminstallstep .execute(NpmInstallStep.java: 32), org.jfrog.hudson.pipeline. scriptedd.steps . npminstallstep $ execute .run(NpmInstallStep.java:66), org.jfrog.hudson.pipeline. scriptedd.steps . npminstallstep $ execute .run(NpmInstallStep.java:41),org. jenkin科学.plugins.workflow.steps. abstractsynchronousnonblockingstepexecution $1$1.call(abstractsynchronousnonblockingstepexecute .java:47), hudson.security.ACL.impersonate(ACL.java:290), org. jenkin科学.plugins.workflow.steps. abstractsynchronousnonblockingstepexecution $1.run(abstractsynchronousnonblockingstepexecute .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)]

      我引用了这里的例子:https://github.com/yahavi/project-examples/blob/master/jenkins-examples/pipeline-examples/scripted-examples/npm-container-example/Jenkinsfile

      我已经尝试了“openjdk:8u212-jdk-alpine”和“timbru31/java-node”,但没有得到什么。

        附件

          问题的链接

            活动

              受让人:
              yahaviYahav伊扎克。
              记者:
              DJThornton多米尼克·桑顿(不活跃)
              投票:
              1 为这个问题投票
              观察人士:
              3. 开始关注这个问题

                日期

                创建:
                更新:
                解决: