从3.4.1版本升级到3.5.0版本的Artifactory插件打破了Artifactory Gradle解析器/部署器的步骤,似乎它认为repo名称是空的(https://github.com/jenkinsci/artifactory-plugin/blob/master/src/main/java/org/jfrog/hudson/pipeline/common/types/deployers/GradleDeployer.java#L49)
下面是失败的管道阶段:
阶段(初始化它的){步骤{rtGradleResolver(id:“artifactory-gradle-resolver”serverId:“VonLatvala Artifactory”回购协议:“gradle-remote”,) rtGradleDeployer(id:“artifactory-gradle-deployer”serverId:“VonLatvala Artifactory”回购协议:“cloudsaber-client”,) rtGradleRun(usesPlugin:真正的, tool: GRADLE_TOOL, useWrapper:假构建文件:“build_ci.gradle”任务:“init”resolverId:“artifactory-gradle-resolver”,)}}
下面是errormessage + stacktrace:
java.io.IOException:部署器应该设置为任意一个“回购”或两个“releaseRepo”和“snapshotRepo”在org.jfrog.hudson.pipeline.common.types.deployers.GradleDeployer.getDetails(GradleDeployer.java:32)在org.jfrog.hudson.pipeline.common.types.deployers.GradleDeployer.getContextBuilder(GradleDeployer.java:162)在org.jfrog.hudson.pipeline.common.executors.EnvExtractor.createPublisherContext(EnvExtractor.java:54) at .org.jfrog.hudson.pipeline.common.executors.EnvExtractor.createArtifactoryClientConfiguration(EnvExtractor.java:75) at org.jfrog.hudson.pipeline.common.executors.EnvExtractor.execute(EnvExtractor.java:64)原因:在org.jfrog.hudson.pipeline.common.executors.GradleExecutor.execute(GradleExecutor.java:66) at org.jfrog.hudson.pipeline.declarative.steps.gradle.GradleStep$Execution.run(GradleStep.java:135) at org.jfrog.hudson.pipeline.declarative.steps.gradle.GradleStep$Execution.run(GradleStep.java:109) at .jfrog.hudson.pipeline.declarative.steps. gradlestep $Execution.run(GradleStep.java:109org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution 1美元1.美元(AbstractSynchronousNonBlockingStepExecution.java: 47)打电话hudson.security.ACL.impersonate (ACL.java: 290) org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution 1.美元(AbstractSynchronousNonBlockingStepExecution.java: 44)运行在java.base / java.util.concurrent.Executors RunnableAdapter.call美元(Executors.java: 515) java.base / java.util.concurrent.FutureTask.run (FutureTask.java: 264)java.base/java.util.concurrent.ThreadPoolExecutor. runworker (ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java。线程.run (线程. java: 834)
正如标题所述,似乎hap - 1174引入了这个bug。
使用插件版本v3.4.1的Build #10
使用插件版本v3.5.0构建#11
使用插件版本v3.4.1构建#12