-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
PRODUCTION
-
Powered by SuggestiMate
When running a maven job at the end of execution it is looking for the wrong pom.xml file and failing. Hence it logs I/O exception.
It is supposed to archive the pom.xml in the folder for build number 35364. But it is looking for improper build folder and failing.
Jenkins version: Jenkins 2.479
Maven Integration pluginVersion3.23
Maven Info PluginVersion0.3.1
Steps to Reproduce:
1) Install Jenkins for Windows in a server
2) Create a node with the two executors
3) Label that node
4) Run jnlp command to connect the VM to the Jenkins
5) Create a Maven execution Job with required parameters
6) Configure that job to execute concurrently
7) Use source code configuration to download the repository in a folder using build number variable. So every execution will be accessing unique files and there will not be any access violation.
8) Create a multi job project and add the execution job to be executed in parallel and pass the required parameter value for each job.
9) Configure the job to run on the connected node
10) Trigger the Multi job project
Actual Result:
Multi job executes the maven execution jobs with concurrent builds on a same node. At the end of each execution job (maven job) build respective pom.xml should be archived without any issues.
Expected Result:
Multi job executes the maven execution jobs with concurrent builds on a same node. At the end of a build it tried to archive pom.xml of other build and fails.
[JENKINS-73925] Looking at the wrong file and "Failed to parse POMs" at end of execution of maven job
Installed Plugins:
Jenkins: 2.479
OS: Windows Server 2019 - 10.0
Java: 17.0.12 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
—
Office-365-Connector:4.21.5
TestComplete:2.9.2
ant:511.v0a_a_1a_334f41b_
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
apache-httpcomponents-client-5-api:5.4-118.v199115451c4d
asm-api:9.7-33.v4d23ef79fcc8
audit-log:1.3
audit-trail:361.v82cde86c784e
authentication-tokens:1.119.v50285141b_7e1
bitbucket:254.v9d8ec33a_7a_42
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
branch-api:2.1178.v969d9eb_c728e
build-blocker-plugin:166.vc82fc20b_a_ed6
build-timeout:1.33
build-user-vars-plugin:182.v378b_9f14b_487
built-on-column:1.4
byte-buddy-api:1.15.3-65.vdef5c3465747
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.2.1
cloud-stats:336.v788e4055508b_
cloudbees-folder:6.955.v81e2a_35c08d3
command-launcher:115.vd8b_301cc15d0
commons-compress-api:1.26.1-2
commons-httpclient3-api:3.1-3
commons-lang3-api:3.17.0-84.vb_b_938040b_078
commons-text-api:1.12.0-129.v99a_50df237f7
conditional-buildstep:1.4.3
config-file-provider:978.v8e85886ffdc4
copyartifact:749.vfb_dca_a_9b_6549
credentials:1381.v2c3a_12074da_b_
credentials-binding:681.vf91669a_32e45
data-tables-api:2.1.6-1
database:266.v1d03c767934e
database-mysql:63.va_0596d2b_1438
display-url-api:2.204.vf6fddd8a_8b_e9
docker-commons:443.v921729d5611d
docker-java-api:3.4.0-94.v65ced49b_a_7d5
docker-plugin:1.6.2
docker-workflow:580.vc0c340686b_54
durable-task:577.v2a_8a_4b_7c0247
echarts-api:5.5.1-1
eddsa-api:0.3.0-4.v84c6f0f4969e
email-ext:1844.v3ea_a_b_842374a_
emailext-template:1.5
envinject:2.919.v009a_a_1067cd0
envinject-api:1.199.v3ce31253ed13
external-monitor-job:215.v2e88e894db_f8
font-awesome-api:6.6.0-2
fstrigger:1.00
git:5.5.1
git-client:6.0.0
git-server:126.v0d945d8d2b_39
github:1.40.0
github-api:1.321-478.vc9ce627ce001
github-branch-source:1797.v86fdb_4d57d43
global-variable-string-parameter:1.2
gradle:2.13
gson-api:2.11.0-41.v019fcf6125dc
htmlpublisher:1.36
instance-identity:201.vd2a_b_5a_468a_a_6
ionicons-api:74.v93d5eb_813d5f
jackson2-api:2.17.0-379.v02de8ec9f64c
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javadoc:280.v050b_5c849f69
javax-activation-api:1.2.0-7
javax-mail-api:1.6.2-10
jaxb:2.3.9-1
jdk-tool:80.v8a_dee33ed6f0
jenkins-multijob-plugin:630.v80676e0dc658
jjwt-api:0.11.5-112.ve82dfb_224b_a_d
jnr-posix-api:3.1.19-2
job-import-plugin:3.6
joda-time-api:2.13.0-85.vb_64d1c2921f1
jqs-monitoring:37.vf50a_82a_0b_f32
jquery:1.12.4-1
jquery3-api:3.7.1-2
jsch:0.2.16-86.v42e010d9484b_
json-api:20240303-41.v94e11e6de726
json-path-api:2.9.0-58.v62e3e85b_a_655
junit:1302.va_b_878c32eb_b_5
ldap:759.vef7f616475df
lockable-resources:1315.v4ea_8e5159ec8
mail-watcher-plugin:1.19
mailer:488.v0c9639c1a_eb_3
matrix-auth:3.2.2
matrix-project:838.v4d7b_7b_f9b_d4b_
maven-info:0.3.1
maven-plugin:3.23
mercurial:1260.vdfb_723cdcc81
mina-sshd-api-common:2.14.0-131.v04e9b_6b_e0362
mina-sshd-api-core:2.14.0-131.v04e9b_6b_e0362
mysql-api:9.0.0-41.vb_fb_62f443490
nodelabelparameter:1.12.0
okhttp-api:4.11.0-181.v1de5b_83857df
opentelemetry-api:1.40.0-36.v1e02b_b_4db_8f4
pam-auth:1.11
parameterized-trigger:806.vf6fff3e28c3e
people-view:1.2
performance:962.v95a_4913d332e
perfpublisher:8.09
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-groovy-lib:730.ve57b_34648c63
pipeline-input-step:495.ve9c153f6067b_
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2214.vb_b_34b_2ea_9b_83
pipeline-model-definition:2.2214.vb_b_34b_2ea_9b_83
pipeline-model-extensions:2.2214.vb_b_34b_2ea_9b_83
pipeline-rest-api:2.34
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2214.vb_b_34b_2ea_9b_83
pipeline-stage-view:2.34
pipeline-utility-steps:2.17.0
plain-credentials:183.va_de8f1dd5a_2b_
plugin-util-api:5.1.0
popper-api:1.16.1-3
publish-over:0.22
publish-over-ssh:1.25
resource-disposer:0.24
role-strategy:743.v142ea_b_d5f1d3
run-condition:1.7
scm-api:696.v778d637b_a_762
script-security:1362.v67dc1f0e1b_b_3
snakeyaml-api:2.3-123.v13484c65210a_
ssh-agent:376.v8933585c69d3
ssh-credentials:343.v884f71d78167
ssh-slaves:2.973.v0fa_8c0dea_f9f
sshd:3.330.vc866a_8389b_58
structs:338.v848422169819
thinBackup:2.1.1
timestamper:1.27
token-macro:400.v35420b_922dcb_
trilead-api:2.147.vb_73cc728a_32e
uno-choice:2.8.3
variant:60.v7290fc0eb_b_cd
versioncolumn:243.vda_c20eea_a_8a_f
windows-slaves:1.8.1
workflow-api:1336.vee415d95c521
workflow-basic-steps:1058.vcb_fc1e3a_21a_9
workflow-cps:3969.vdc9d3a_efcc6a_
workflow-cps-global-lib:612.v55f2f80781ef
workflow-durable-task-step:1371.vb_7cec8f3b_95e
workflow-job:1441.vb_2d416905b_35
workflow-multibranch:795.ve0cb_1f45ca_9a_
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:678.v3ee58b_469476
workflow-support:926.v9f4f9b_b_98c19
ws-cleanup:0.46
xtrigger-api:1.0
Console Log:
Parsing POMs
Established TCP socket on 52734
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[ai-tc-framework_core] $ java -Xms1024M -Xmx1024M -Dmail.imaps.ssl.protocols=TLSv1.2 -Dmail.imap.ssl.protocols=TLSv1.2 -Dtestng.dtd.http=true -Xmx2g -cp C:\Jenkins\maven35-agent.jar;C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\MAVEN_HOME\boot\plexus-classworlds-2.6.0.jar;C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\MAVEN_HOME/conf/logging jenkins.maven3.agent.Maven35Main C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\MAVEN_HOME C:\Users\svc_mcs_tst_autotest\Desktop\agent.jar C:\Jenkins\maven35-interceptor.jar C:\Jenkins\maven3-interceptor-commons.jar 52734
<===[JENKINS REMOTING CAPACITY]===>channel started
Execution logs here removed intentionally...
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.351 s - in application.Driver
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[JENKINS] Recording test results
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.114 s
[INFO] Finished at: 2024-10-14T06:31:08-05:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
channel stopped
ERROR: Failed to parse POMs
java.io.IOException: java.nio.file.NoSuchFileException: C:\TestAutomation\Selenium\xxx\PROD\35359\ai-tc-framework_core\pom.xml
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:150)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.readAndBuffer(XMLEntityManager.java:3025)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:705)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:861)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
at PluginClassLoader for maven-info//org.apache.commons.digester3.Digester.parse(Digester.java:1642)
at PluginClassLoader for maven-info//org.apache.commons.digester3.Digester.parse(Digester.java:1701)
at PluginClassLoader for maven-info//jenkins.plugins.maveninfo.extractor.properties.PomPropertiesFinder.findProperties(PomPropertiesFinder.java:76)
at PluginClassLoader for maven-info//jenkins.plugins.maveninfo.extractor.MavenInfoExtractor.extract(MavenInfoExtractor.java:59)
at PluginClassLoader for maven-info//jenkins.plugins.maveninfo.extractor.MavenInfoEnvironment.tearDown(MavenInfoEnvironment.java:43)
at PluginClassLoader for maven-plugin//hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:906)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:527)
at hudson.model.Run.execute(Run.java:1828)
at PluginClassLoader for maven-plugin//hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:445)
Caused by: java.nio.file.NoSuchFileException: C:\TestAutomation\Selenium\xxx\PROD\35359\ai-tc-framework_core\pom.xml
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:422)
at java.base/java.nio.file.Files.newInputStream(Files.java:160)
at Jenkins v2.479//hudson.FilePath.openInputStream(FilePath.java:2253)
at Jenkins v2.479//hudson.FilePath.newInputStreamDenyingSymlinkAsNeeded(FilePath.java:2241)
at Jenkins v2.479//hudson.FilePath$Read.invoke(FilePath.java:2397)
at Jenkins v2.479//hudson.FilePath$Read.invoke(FilePath.java:2383)
at Jenkins v2.479//hudson.FilePath$FileCallableWrapper.call(FilePath.java:3614)
at hudson.remoting.UserRequest.perform(UserRequest.java:225)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:391)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140)
at java.base/java.lang.Thread.run(Thread.java:842)
ERROR: Unable to tear down: java.nio.file.NoSuchFileException: C:\TestAutomation\Selenium\xxx\PROD\35359\ai-tc-framework_core\pom.xml
java.nio.file.NoSuchFileException: C:\TestAutomation\Selenium\xxx\PROD\35359\ai-tc-framework_core\pom.xml
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:422)
at java.base/java.nio.file.Files.newInputStream(Files.java:160)
at Jenkins v2.479//hudson.FilePath.openInputStream(FilePath.java:2253)
at Jenkins v2.479//hudson.FilePath.newInputStreamDenyingSymlinkAsNeeded(FilePath.java:2241)
at Jenkins v2.479//hudson.FilePath$Read.invoke(FilePath.java:2397)
at Jenkins v2.479//hudson.FilePath$Read.invoke(FilePath.java:2383)
at Jenkins v2.479//hudson.FilePath$FileCallableWrapper.call(FilePath.java:3614)
at hudson.remoting.UserRequest.perform(UserRequest.java:225)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:391)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140)
at java.base/java.lang.Thread.run(Thread.java:842)
Caused: java.io.IOException
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:150)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.readAndBuffer(XMLEntityManager.java:3025)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:705)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:861)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
at PluginClassLoader for maven-info//org.apache.commons.digester3.Digester.parse(Digester.java:1642)
at PluginClassLoader for maven-info//org.apache.commons.digester3.Digester.parse(Digester.java:1701)
at PluginClassLoader for maven-info//jenkins.plugins.maveninfo.extractor.properties.PomPropertiesFinder.findProperties(PomPropertiesFinder.java:76)
at PluginClassLoader for maven-info//jenkins.plugins.maveninfo.extractor.MavenInfoExtractor.extract(MavenInfoExtractor.java:59)
at PluginClassLoader for maven-info//jenkins.plugins.maveninfo.extractor.MavenInfoEnvironment.tearDown(MavenInfoEnvironment.java:43)
at hudson.model.AbstractBuild$AbstractBuildExecution.tearDownBuildEnvironments(AbstractBuild.java:567)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
at hudson.model.Run.execute(Run.java:1828)
at PluginClassLoader for maven-plugin//hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:445)
[htmlpublisher] Archiving HTML reports...
You'll need to provide much more detail so that others can duplicate the issue. "How to report an issue" provides the information that is needed. If that information is not provided, this issue will be closed as "Cannot reproduce".