-
类型: 错误
-
状态: Resolved
A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决 -
解决方法: 完成
-
影响版本/ s: 3.0.0
-
修复版本/ s: 3.1.1
-
组件/ s: 没有一个
-
标签:没有一个
在某些情况下,当使用Jenkins Artifactory插件在从属节点上运行构建时,Jenkins的控制台日志是不完整的。(在主机上不会发生这种行为)。
复制步骤:
- 在Jenkins中创建SSH Slave
- 使用Maven创建一个管道作业工程实例
- 编辑管道脚本使构建失败(例如部署到不存在的存储库)
- 在创建的SSH Slave上运行构建
- 您应该注意到,在某些情况下,构建日志中缺少日志条目(示例如下)
完整的日志:
[main] INFO org.apache.maven.cli.event.ExecutionEventLogger -扫描为项目……[main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ [main] INFO org.apache.maven.cli.event.ExecutionEventLogger -反应器构建顺序:[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -[主要]信息org.apache.maven.cli.event.ExecutionEventLogger简单的多模块构建[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -多1[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -多2[主要]信息org.apache.maven.cli.event.ExecutionEventLogger多3[主要]信息org.apache.maven.cli.event.ExecutionEventLogger - org.apache.maven.cli.event.ExecutionEventLogger[主要]信息------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——构建简单的多模块构建3.7快照org.apache.maven.cli.event.ExecutionEventLogger[主要]信息 - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger -[主要]信息org.apache.maven.cli.event.ExecutionEventLogger————maven-clean-plugin: 2.5:清洁(默认的-clean) @ multi - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-install-plugin:2.4默认的-安装)@ multi - [main] INFO org.codehaus.plexus.PlexusContainer -安装/var/lib/jenkins/workspace/pipeline-maven/maven-example/pom.xmlvar/lib/jenkins/.m2/repository/org/jfrog/test/multi/3.7-SNAPSHOT /多- 3.7 -快照。pom[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -[主要]信息org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——建筑多1 3.7快照org.apache.maven.cli.event.ExecutionEventLogger[主要]信息 - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——[主要]INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-clean-plugin:2.5:clean (默认的-clean) @ multi1—[main] INFO org.apache.maven.plugin.clean.CleanMojo -删除/var[main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-resources-plugin:2.6:resources (2022世界杯阿根廷预选赛赛程默认的-2022世界杯阿根廷预选赛赛程资源)@ multi1——[主要]INFO org.apache.maven.shared.filter . defaultmavenresourcesfiltering - Using“utf - 8”编码以复制已过滤的资源。2022世界杯阿根廷预选赛赛程[main] INFO org.apache.maven.shared.filter . defaultmavenr2022世界杯阿根廷预选赛赛程esourcesfiltering -跳过不存在的resourceDirectory /var[main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main]2022世界杯阿根廷预选赛赛程 INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-compiler-plugin:3.1:编译(默认的-编译)@ multi1——[main] INFO org.apache.maven.plugin.compiler.CompilerMojo -检测到的变化-重新编译模块![main] INFO org.codehaus.plexus.compiler.javac.JavacCompiler -编译1个源文件到/var/lib/jenkins/workspace/pipeline-maven / maven-example multi1[主要]信息org.apache.maven.plugin.compiler.CompilerMojo /目标/类 - ------------------------------------------------------------- [ 主要错误org.apache.maven.plugin.compiler.CompilerMojo——编译错误:[主要]信息org.apache.maven.plugin.compiler.CompilerMojo - ------------------------------------------------------------- [ 主要]org.apache.maven.plugin.compiler.CompilerMojo——没有提供编译器错误这环境。也许您运行的是JRE而不是JDK?[主要]信息[主要]信息org.apache.maven.plugin.compiler.CompilerMojo org.apache.maven.plugin.compiler.CompilerMojo - 1错误 - ------------------------------------------------------------- [ 主要]信息org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——反应堆简介:[main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger -简单多模块构建.........................成功[0.509][主要]信息org.apache.maven.cli.event.ExecutionEventLogger -多1 ............................................失败[0.728][主要]信息org.apache.maven.cli.event.ExecutionEventLogger -多2 ............................................跳过[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -多3 ............................................跳过org.apache.maven.cli.event.ExecutionEventLogger[主要]信息 - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——[主要]信息org.apache.maven.cli.event.ExecutionEventLogger构建失败 - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——总时间:[管道]}[管道][管道][管道]/ /阶段[管道]}[管道]/ /节点[Pipeline] End of Pipeline java.lang.RuntimeException:Maven构建失败了org.jfrog.hudson.pipeline.common.executors.MavenExecutor.execute (MavenExecutor.java: 72)美元org.jfrog.hudson.pipeline.scripted.steps.ArtifactoryMavenBuild Execution.run (ArtifactoryMavenBuild.java: 78)美元org.jfrog.hudson.pipeline.scripted.steps.ArtifactoryMavenBuild Execution.run (ArtifactoryMavenBuild.java: 53) org.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.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). lang。线程.run (线程.java:748) Finished: failed
不完整的日志:
[main] INFO org.apache.maven.cli.event.ExecutionEventLogger -扫描为项目……[main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ [main] INFO org.apache.maven.cli.event.ExecutionEventLogger -反应器构建顺序:[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -[主要]信息org.apache.maven.cli.event.ExecutionEventLogger简单的多模块构建[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -多1[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -多2[主要]信息org.apache.maven.cli.event.ExecutionEventLogger多3[主要]信息org.apache.maven.cli.event.ExecutionEventLogger - org.apache.maven.cli.event.ExecutionEventLogger[主要]信息------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——构建简单的多模块构建3.7快照org.apache.maven.cli.event.ExecutionEventLogger[主要]信息 - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger -[主要]信息org.apache.maven.cli.event.ExecutionEventLogger————maven-clean-plugin: 2.5:清洁(默认的-clean) @ multi - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-install-plugin:2.4默认的-安装)@ multi - [main] INFO org.codehaus.plexus.PlexusContainer -安装/var/lib/jenkins/workspace/pipeline-maven/maven-example/pom.xmlvar/lib/jenkins/.m2/repository/org/jfrog/test/multi/3.7-SNAPSHOT /多- 3.7 -快照。pom[主要]信息org.apache.maven.cli.event.ExecutionEventLogger -[主要]信息org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——建筑多1 3.7快照org.apache.maven.cli.event.ExecutionEventLogger[主要]信息 - ------------------------------------------------------------------------ [ 主要信息org.apache.maven.cli.event.ExecutionEventLogger——[主要]INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-clean-plugin:2.5:clean (默认的-clean) @ multi1—[main] INFO org.apache.maven.plugin.clean.CleanMojo -删除/var[main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-resources-plugin:2.6:resources (2022世界杯阿根廷预选赛赛程默认的-2022世界杯阿根廷预选赛赛程资源)@ multi1——[主要]INFO org.apache.maven.shared.filter . defaultmavenresourcesfiltering - Using“utf - 8”编码以复制已过滤的资源。2022世界杯阿根廷预选赛赛程[main] INFO org.apache.maven.shared.filter . defaultmavenr2022世界杯阿根廷预选赛赛程esourcesfiltering -跳过不存在的resourceDirectory /var[main] INFO org.apache.maven.cli.event.ExecutionEventLogger - [main]2022世界杯阿根廷预选赛赛程 INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-compiler-plugin:3.1:编译(默认的-compile) @ multi1—[Pipeline]} [Pipeline]/ /阶段[管道]}[管道]/ /节点[Pipeline] End of Pipeline java.lang.RuntimeException:Maven构建失败了org.jfrog.hudson.pipeline.common.executors.MavenExecutor.execute (MavenExecutor.java: 72)美元org.jfrog.hudson.pipeline.scripted.steps.ArtifactoryMavenBuild Execution.run (ArtifactoryMavenBuild.java: 78)美元org.jfrog.hudson.pipeline.scripted.steps.ArtifactoryMavenBuild Execution.run (ArtifactoryMavenBuild.java: 53) org.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.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). lang。线程.run (线程.java:748) Finished: failed
- 与
-
hap - 1203当柯南失败时,日志不会刷新给詹金斯
- Open
The issue is open and ready and has been assigned to a release version">开放
- Open
-
hap - 1152使用artifactory Jenkins插件时出现非信息性构建错误
- Resolved
A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决
- Resolved