将 SonarQube服务器从6.3升级到6.5 后,我们遇到了一些构建管道的奇怪问题(我不确定升级是否真的引起了这个问题,但它是在我们第一次注意到的升级之后。在所有项目中都不会发生这种情况。)
在SonarQube分析期间,所有服务器内存和交换都填满了,jenkins管道随后失败,错误代码为137.控制台输出显示以下错误消息:
/home/jenkins/workspace/SP_wspadaptorservice_master-DJJLS64T4TWKICWSK3LOTAQTPHHR7GDJ5O3T7PFUUHASLVSDJPQQ@tmp/withMavenb0f23023/mvn: line 3: 100318 Killed
/home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/M3/bin/mvn --global-settings /home/jenkins/workspace/SP_wspadaptorservice_master-DJJLS64T4TWKICWSK3LOTAQTPHHR7GDJ5O3T7PFUUHASLVSDJPQQ@tmp/withMavenb0f23023/globalSettings.xml --batch-mode --show-version "$@"
ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /home/jenkins/workspace/SP_wspadaptorservice_master-DJJLS64T4TWKICWSK3LOTAQTPHHR7GDJ5O3T7PFUUHASLVSDJPQQ@tmp/withMavenb0f23023/maven-spy-20170918-151032-313.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
ERROR: org.xml.sax.SAXParseException; lineNumber: 393; columnNumber: 201; XML document structures must start and end within the same entity.
显然我们首先做的是增加VM的内存和交换空间,重新启动服务器并再次启动构建。 这导致现在20gb的内存逐渐填满,然后在构建再次失败之前填充20gb交换,这需要大约2.5分钟。我无法想象实际上使用这么多内存的构建。
在Jenkins中设置-Xmx和-Xms'全局MAVEN_OPTS未改变此行为。
在网上和日志中查看,升级所有插件后,我真的不知道从哪里解决这个问题,而且我确定我忽略了一些东西。如果您需要任何日志或更多信息,我很乐意提供。
我不确定这是Jenkins,maven还是sonarqube的问题,所以非常感谢任何输入。
正在运行的版本:
管道失败的示例(Stage'测试'成功后失败):
#!groovy
pipeline {
agent any
stages {
stage('Checkout') {
steps {
git credentialsId: 'xxx', url: 'yyy.git'
checkout scm
}
}
stage('Clean') {
steps {
withMaven(maven: 'M3') {
sh "mvn clean"
}
}
}
stage('Test') {
steps {
withMaven(maven: 'M3') {
sh "mvn test"
}
}
post {
success {
junit '**/target/surefire-reports/TEST-*.xml'
withMaven(maven: 'M3') {
sh "mvn sonar:sonar -Dsonar.branch=${BRANCH_NAME}"
}
}
}
}
stage('Build') {
steps {
withMaven(maven: 'M3') {
sh "mvn clean install"
}
}
post {
success {
archiveArtifacts artifacts: '**/target/*.war', fingerprint: true
}
}
}
}
}
调试输出:
[INFO] 17:12:03.363 Java Main Files AST scan
[INFO] 17:12:03.364 231 source files to be analyzed
[DEBUG] 17:12:03.389 'src/main/java/com/company/boundaries/AbstractImportScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:04.468 Could not complete symbolic execution:
org.sonar.java.se.ExplodedGraphWalker$MaximumStepsReachedException: reached limit of 16000 steps for method processFileList#213 in class AbstractImportScheduler
at org.sonar.java.se.ExplodedGraphWalker.throwMaxSteps(ExplodedGraphWalker.java:282)
at org.sonar.java.se.ExplodedGraphWalker.execute(ExplodedGraphWalker.java:231)
at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:204)
at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:196)
at org.sonar.java.se.SymbolicExecutionVisitor.execute(SymbolicExecutionVisitor.java:77)
at org.sonar.java.se.SymbolicExecutionVisitor.visitNode(SymbolicExecutionVisitor.java:63)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:95)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97)
at org.sonar.java.ast.visitors.SubscriptionVisitor.scanTree(SubscriptionVisitor.java:78)
at org.sonar.java.ast.visitors.SubscriptionVisitor.scanFile(SubscriptionVisitor.java:64)
at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:114)
at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:96)
at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:68)
at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:119)
at org.sonar.java.JavaSquid.scan(JavaSquid.java:113)
at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:84)
at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:179)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:261)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:256)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:245)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:119)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy23.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:77)
at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:139)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[DEBUG] 17:12:05.380 'src/main/java/com/company/boundaries/commons/AbstractExportScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:09.332 Could not complete symbolic execution:
org.sonar.java.se.ExplodedGraphWalker$MaximumStepsReachedException: reached limit of 16000 steps for method startTimers#286 in class AbstractExportScheduler
at org.sonar.java.se.ExplodedGraphWalker.throwMaxSteps(ExplodedGraphWalker.java:282)
at org.sonar.java.se.ExplodedGraphWalker.execute(ExplodedGraphWalker.java:231)
at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:204)
at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:196)
at org.sonar.java.se.SymbolicExecutionVisitor.execute(SymbolicExecutionVisitor.java:77)
at org.sonar.java.se.SymbolicExecutionVisitor.visitNode(SymbolicExecutionVisitor.java:63)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:95)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120)
at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97)
at org.sonar.java.ast.visitors.SubscriptionVisitor.scanTree(SubscriptionVisitor.java:78)
at org.sonar.java.ast.visitors.SubscriptionVisitor.scanFile(SubscriptionVisitor.java:64)
at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:114)
at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:96)
at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:68)
at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:119)
at org.sonar.java.JavaSquid.scan(JavaSquid.java:113)
at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:84)
at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:179)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:261)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:256)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:245)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:119)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy23.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:77)
at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:139)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[DEBUG] 17:12:10.382 'src/main/java/com/company/boundaries/commons/AbstractNonSapScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:11.005 'src/main/java/com/company/boundaries/commons/ConfigChangeListener.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:12.209 'src/main/java/com/company/boundaries/nonsap/dataexport/CAScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:12.868 'src/main/java/com/company/boundaries/nonsap/dataexport/FRScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:13.176 'src/main/java/com/company/boundaries/nonsap/dataexport/SESafetyStockScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:13.380 'src/main/java/com/company/boundaries/nonsap/dataexport/SEScheduler.java' generated metadata with charset 'UTF-8'
[INFO] 17:12:13.422 7/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/boundaries/nonsap/dataexport/SEScheduler.java
[DEBUG] 17:12:13.597 'src/main/java/com/company/boundaries/nonsap/dataimport/NonSapScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:15.105 'src/main/java/com/company/boundaries/sap/star/dataexport/ATScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:15.865 'src/main/java/com/company/boundaries/sap/star/dataexport/FEScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:18.478 'src/main/java/com/company/boundaries/sap/star/dataexport/FIScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:19.619 'src/main/java/com/company/boundaries/sap/star/dataexport/NOScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:20.134 'src/main/java/com/company/boundaries/sap/star/dataexport/WEScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:20.570 'src/main/java/com/company/boundaries/sap/star/dataimport/StarScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:21.390 'src/main/java/com/company/boundaries/sap/wint/dataexport/WintExportScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:22.055 'src/main/java/com/company/boundaries/sap/wint/dataimport/WintImportScheduler.java' generated metadata with charset 'UTF-8'
[INFO] 17:12:23.422 16/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/boundaries/sap/wint/dataimport/WintImportScheduler.java
[DEBUG] 17:12:23.994 'src/main/java/com/company/boundaries/sap/wrp/dataexport/PTScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:25.022 'src/main/java/com/company/boundaries/sap/wrp/dataimport/WrpScheduler.java' generated metadata with charset 'UTF-8'
[DEBUG] 17:12:29.528 'src/main/java/com/company/controls/DataExportController.java' generated metadata with charset 'UTF-8'
[INFO] 17:12:33.466 19/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/DataExportController.java
[INFO] 17:12:43.510 19/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/DataExportController.java
[INFO] 17:12:53.532 19/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/DataExportController.java
[INFO] 17:13:03.534 19/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/DataExportController.java
[INFO] 17:13:13.535 19/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/DataExportController.java
[DEBUG] 17:13:23.487 'src/main/java/com/company/controls/MappingConstants.java' generated metadata with charset 'UTF-8'
[INFO] 17:13:23.570 20/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/MappingConstants.java
[DEBUG] 17:13:31.351 'src/main/java/com/company/controls/WarehouseLocationMapper.java' generated metadata with charset 'UTF-8'
[INFO] 17:13:33.583 21/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/WarehouseLocationMapper.java
[INFO] 17:13:43.607 21/231 files analyzed, current file: /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA/src/main/java/com/company/controls/WarehouseLocationMapper.java
/home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA@tmp/withMavenbf77c39b/mvn: line 3: 31914 Killed /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/M3/bin/mvn --global-settings /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA@tmp/withMavenbf77c39b/globalSettings.xml --batch-mode --show-version "$@"
[Pipeline] }
ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /home/jenkins/workspace/torservice_temp_jenkinstest-JHGJFDJ3NKMRDAXZBOCEGNRKX2SUYVXPNSYOH4DAWJ7M6OZB7NFA@tmp/withMavenbf77c39b/maven-spy-20170918-171153-788.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
ERROR: org.xml.sax.SAXParseException; lineNumber: 393; columnNumber: 202; XML document structures must start and end within the same entity.
[Pipeline] // withMaven
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
Stage 'Build' skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
[Bitbucket] Notifying commit build result
[Bitbucket] Build result notified
ERROR: script returned exit code 137
Finished: FAILURE
答案 0 :(得分:0)
我们遇到了同样的问题,但在将我们的jdk从java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4降级到java-1.8.0-openjdk-devel-1.8.0.141-2.b16之后。 el7_4.x86_64它再次按预期开始工作。我不太了解它们的不同之处,但我们在RHEL-7.4
上重新启动并再次运行答案 1 :(得分:0)
我和maven在竹子中进行声纳分析时遇到了同样的问题。 我已经确认将java JDK升级到1.8.0.151可以解决代码137错误。因此,如果您不想从1.8.0.144降级到1.8.0.141,请尝试此操作。