-
类型: 错误
-
状态: 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: 没有一个
-
环境:
//创建一个Artifactory服务器实例,如本文所述:
def server = Artifactory.server('jfrog')
//创建并设置一个Artifactory NPM Build实例
def rtNpm = Artifactory.newNpmBuild()
//设置依赖解析器:
rtNpm.deployer服务器:服务器,repo: 'npm'
rtNpm。解析器服务器:服务器,repo: 'npm'
//禁用二进制自动部署:
rtnpm .deploy . deployartifacts = false //尝试了true和false
def buildInfo = Artifactory.newBuildInfo()
rtNpm。install buildInfo: buildInfo, path: "package. "Json ",参数:' -verbose '
Artifactory插件3.5.0
詹金斯2.203
JDK 8u212, 11和15
节点12.倍//创建一个Artifactory服务器实例,如本文中所述:def server = Artifactory.server('jfrog') //创建并设置一个Artifactory NPM构建实例:def rtNpm = Artifactory. newnpmbuild() //设置依赖解析器:rtNpm.deployer服务器:server, repo: ' NPM ' rtNpm. builder ()解析器服务器:服务器、回购:“npm”/ /禁用自动二进制部署:rtNpm.deployer.deployArtifacts = false / /尝试都真假def buildInfo = Artifactory.newBuildInfo rtNpm()。install buildInfo: buildInfo, path: "package. "Json ",参数:' -verbose 'Artifactory插件3.5.0詹金斯2.203JDK 8u212, 11和15节点12.倍
现在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)]
我已经尝试了“openjdk:8u212-jdk-alpine”和“timbru31/java-node”,但没有得到什么。
- 与
-
bi - 518nullpointerexception与rtNpm安装在容器
- Resolved
A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决
- Resolved