Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44088

Windows Exception processing the logs generated by the Jenkins Maven Event Spy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: pipeline-maven-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      Note: our build completes with SUCCESS without error or warnings on a Linux build agent.  The build completes with SUCCESS and the same outputs (except the missing non-archived pom.xml files) as the Linux build but has the warning messages displayed below.

      When running a withMaven build from a sh() build step on Windows:

      withMaven(jdk: config['jdk'], maven: config['maven'], mavenLocalRepo: config['mavenLocalRepo'], mavenSettingsConfig: config['mavenSettingsConfig']) \{
      
      sh('''\\
      
      if [[ -e "pom.xml" ]]; then
          # Run Jenkins maven wrapper script using mvn in Unix bash or mvn.cmd in cmd.exe from     Git for Windows bash
          if [[ -z "$COMSPEC" ]]; then
              cmd=(mvn)
          else
              cmd=("$COMSPEC" //c mvn.cmd)
          fi
          args=(--batch-mode -U -V --settings "$MVN_SETTINGS" clean install -P "$BUILD_PROFILE" \\
              "-DxlDeployServerAddress=$XLDEPLOY_SERVER_ADDRESS" "-DxlDeployPort=$XLDEPLOY_PORT" \\
              "-DxlDeploySecured=$XLDEPLOY_SECURED" "-DbuildUrl=$BUILD_URL")
          eval $(printf " %q" "$\{cmd[@]}" "$\{args[@]}")
       fi''')
      
      }
      

      We get the following error.  Note that the path that is generated for the archived pom.xml file by the 'pipeline-maven-plugin' is in correct in that it duplicates the directory prefix (C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ) twice.  See below:

       

      ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMavenf5b2ab19\maven-spy-20170505-120300-155.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
      java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:2215)
      	at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
      	at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:99)
      	at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:101)
      	at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:770)
      	at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
      	at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)
      	at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
      	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
      	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
      	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
      	at hudson.remoting.Channel$2.adapt(Channel.java:862)
      	at hudson.remoting.Channel$2.adapt(Channel.java:857)
      	at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:2213)
      	... 27 more 
      Caused by: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml 
      	at hudson.util.io.TarArchiver.visit(TarArchiver.java:110)
      	at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
      	at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)|
      	at hudson.FilePath.writeToTar(FilePath.java:2251)
      	at hudson.FilePath.access$2100(FilePath.java:195)
      	at hudson.FilePath$45.invoke(FilePath.java:2194)
      	at hudson.FilePath$45.invoke(FilePath.java:2190)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:336)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at hudson.remoting.Engine$1$1.run(Engine.java:94)
      	at java.lang.Thread.run(Thread.java:745)
      	at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:50719(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      	at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more 
      Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml (The filename, directory name, or volume label syntax is incorrect)
      	 at java.io.FileInputStream.open0(Native Method)
      	 at java.io.FileInputStream.open(FileInputStream.java:195)
      	 at java.io.FileInputStream.<init>(FileInputStream.java:138)
      	 at hudson.util.io.TarArchiver.visit(TarArchiver.java:103)
      	 at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
      	 at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)
      	 at hudson.FilePath.writeToTar(FilePath.java:2251)
      	 at hudson.FilePath.access$2100(FilePath.java:195)
      	 at hudson.FilePath$45.invoke(FilePath.java:2194)
      	 at hudson.FilePath$45.invoke(FilePath.java:2190)
      	 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
      	 at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      	 at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	 at hudson.remoting.Request$2.run(Request.java:336)
      	 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	 at hudson.remoting.Engine$1$1.run(Engine.java:94)
      	 ... 1 more
      

        Attachments

        1. log.txt
          1.12 MB
        2. log.txt
          1.11 MB
        3. pipeline-maven-20170510-1407.hpi
          1.09 MB
        4. pipeline-maven-2017-05-12-00-23.hpi
          1.09 MB

          Issue Links

            Activity

            flstaats Frederick Staats created issue -
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Can you please upgrade the pipeline maven plugin, we have improved the error message. I have been chasing the cause for weeks but I didn't find a Windows box. I'll link your ticket to similar issues when I have access to my laptop.

            Show
            cleclerc Cyrille Le Clerc added a comment - Can you please upgrade the pipeline maven plugin, we have improved the error message. I have been chasing the cause for weeks but I didn't find a Windows box. I'll link your ticket to similar issues when I have access to my laptop.
            Hide
            cleclerc Cyrille Le Clerc added a comment -
            Show
            cleclerc Cyrille Le Clerc added a comment - See JENKINS-43617
            Hide
            flstaats Frederick Staats added a comment -

            Ok I've updated to the latest Jenkins LTS 2.46.2 and Maven Integration plugin 2.15.1 with Pipeline Maven Integration Plugin 2.1.0.

            Still showing that it is trying to use path with duplicated prefix:

            *C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ*C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml

            Here is the latest error messages with the latest plugin:

            ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMaven85f982d4\maven-spy-20170505-172212-258.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at

            https://issues.jenkins-ci.org java.io.IOException

            : Exception archiving {com/standard/bre/testapp/BREJBOSSDeployTestDevWeb/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevWeb-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDevEAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevEAR-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevEAR\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDevDAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevDAR-1.0.56-SNAPSHOT.dar=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevDAR\target\BREJBOSSDeployTestDevDAR-1.0.56-SNAPSHOT.dar, com/standard/bre/testapp/BREJBOSSDeployTestDevEAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevEAR-1.0.56-SNAPSHOT.ear=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevEAR\target\BREJBOSSDeployTestDevEAR-1.0.56-SNAPSHOT.ear, com/standard/bre/testapp/BREJBOSSDeployTestDevDAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevDAR-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevDAR\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDev-Parent/1.0.56-SNAPSHOT/BREJBOSSDeployTestDev-Parent-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDevWeb/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevWeb-1.0.56-SNAPSHOT.war=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\target\BREJBOSSDeployTestDevWeb-1.0.56-SNAPSHOT.war} at

            org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:111)

            at

            org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:103)

            at

            org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:850)

            at

            org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)

            at

            org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)

            at

            com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)

            at

            com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)

            at

            org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230)

            at

            org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)

            at

            java.util.concurrent.FutureTask.run(FutureTask.java:266)

            at

            hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)

            at

            jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)

            at

            java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

            at

            java.util.concurrent.FutureTask.run(FutureTask.java:266)

            at

            java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

            at

            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

            at

            java.lang.Thread.run(Thread.java:745)

            Caused by:

            java.io.IOException

            : java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at

            hudson.FilePath.copyRecursiveTo(FilePath.java:2215)

            at

            jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)

            at

            org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:109)

            ... 25 more Caused by:

            java.util.concurrent.ExecutionException

            : java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at

            hudson.remoting.Channel$2.adapt(Channel.java:862)

            at

            hudson.remoting.Channel$2.adapt(Channel.java:857)

            at

            hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)

            at

            hudson.FilePath.copyRecursiveTo(FilePath.java:2213)

            ... 27 more Caused by:

            java.io.IOException

            : Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at

            hudson.util.io.TarArchiver.visit(TarArchiver.java:110)

            at

            hudson.util.DirScanner.scanSingle(DirScanner.java:49)

            at

            hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)

            at

            hudson.FilePath.writeToTar(FilePath.java:2251)

            at

            hudson.FilePath.access$2100(FilePath.java:195)

            at

            hudson.FilePath$45.invoke(FilePath.java:2194)

            at

            hudson.FilePath$45.invoke(FilePath.java:2190)

            at

            hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)

            at

            hudson.remoting.UserRequest.perform(UserRequest.java:153)

            at

            hudson.remoting.UserRequest.perform(UserRequest.java:50)

            at

            hudson.remoting.Request$2.run(Request.java:336)

            at

            hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)

            at

            java.util.concurrent.FutureTask.run(FutureTask.java:266)

            at

            java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

            at

            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

            at

            hudson.remoting.Engine$1$1.run(Engine.java:94)

            at

            java.lang.Thread.run(Thread.java:745)

            at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:52296(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804) at hudson.FilePath.writeToTar(FilePath.java:2251) at hudson.FilePath.access$2100(FilePath.java:195) at hudson.FilePath$45.invoke(FilePath.java:2194) at hudson.FilePath$45.invoke(FilePath.java:2190) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:94) ... 1 more

            Show
            flstaats Frederick Staats added a comment - Ok I've updated to the latest Jenkins LTS 2.46.2 and Maven Integration plugin 2.15.1 with Pipeline Maven Integration Plugin 2.1.0. Still showing that it is trying to use path with duplicated prefix: *C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ* C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml Here is the latest error messages with the latest plugin: ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMaven85f982d4\maven-spy-20170505-172212-258.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org java.io.IOException : Exception archiving {com/standard/bre/testapp/BREJBOSSDeployTestDevWeb/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevWeb-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDevEAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevEAR-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevEAR\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDevDAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevDAR-1.0.56-SNAPSHOT.dar=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevDAR\target\BREJBOSSDeployTestDevDAR-1.0.56-SNAPSHOT.dar, com/standard/bre/testapp/BREJBOSSDeployTestDevEAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevEAR-1.0.56-SNAPSHOT.ear=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevEAR\target\BREJBOSSDeployTestDevEAR-1.0.56-SNAPSHOT.ear, com/standard/bre/testapp/BREJBOSSDeployTestDevDAR/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevDAR-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevDAR\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDev-Parent/1.0.56-SNAPSHOT/BREJBOSSDeployTestDev-Parent-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml, com/standard/bre/testapp/BREJBOSSDeployTestDevWeb/1.0.56-SNAPSHOT/BREJBOSSDeployTestDevWeb-1.0.56-SNAPSHOT.war=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\target\BREJBOSSDeployTestDevWeb-1.0.56-SNAPSHOT.war} at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:111) at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:103) at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:850) at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114) at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362) at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException : java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at hudson.FilePath.copyRecursiveTo(FilePath.java:2215) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:109) ... 25 more Caused by: java.util.concurrent.ExecutionException : java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at hudson.remoting.Channel$2.adapt(Channel.java:862) at hudson.remoting.Channel$2.adapt(Channel.java:857) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.FilePath.copyRecursiveTo(FilePath.java:2213) ... 27 more Caused by: java.io.IOException : Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at hudson.util.io.TarArchiver.visit(TarArchiver.java:110) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804) at hudson.FilePath.writeToTar(FilePath.java:2251) at hudson.FilePath.access$2100(FilePath.java:195) at hudson.FilePath$45.invoke(FilePath.java:2194) at hudson.FilePath$45.invoke(FilePath.java:2190) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:94) at java.lang.Thread.run(Thread.java:745) at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:52296(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804) at hudson.FilePath.writeToTar(FilePath.java:2251) at hudson.FilePath.access$2100(FilePath.java:195) at hudson.FilePath$45.invoke(FilePath.java:2194) at hudson.FilePath$45.invoke(FilePath.java:2190) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:94) ... 1 more
            cleclerc Cyrille Le Clerc made changes -
            Field Original Value New Value
            Description Note: our build completes with SUCCESS without error or warnings on a Linux build agent.  The build completes with SUCCESS and the same outputs (except the missing non-archived pom.xml files) as the Linux build but has the warning messages displayed below.

            When running a withMaven build from a sh() build step on Windows:

            withMaven(jdk: config['jdk'], maven: config['maven'], mavenLocalRepo: config['mavenLocalRepo'], mavenSettingsConfig: config['mavenSettingsConfig']) \{

            sh('''\\

            if [[ -e "pom.xml" ]]; then
                # Run Jenkins maven wrapper script using mvn in Unix bash or mvn.cmd in cmd.exe from     Git for Windows bash
                if [[ -z "$COMSPEC" ]]; then
                    cmd=(mvn)
                else
                    cmd=("$COMSPEC" //c mvn.cmd)
                fi
                args=(--batch-mode -U -V --settings "$MVN_SETTINGS" clean install -P "$BUILD_PROFILE" \\
                    "-DxlDeployServerAddress=$XLDEPLOY_SERVER_ADDRESS" "-DxlDeployPort=$XLDEPLOY_PORT" \\
                    "-DxlDeploySecured=$XLDEPLOY_SECURED" "-DbuildUrl=$BUILD_URL")
                eval $(printf " %q" "$\{cmd[@]}" "$\{args[@]}")
             fi''')

            }

            We get the following error.  Note that the path that is generated for the archived pom.xml file by the 'pipeline-maven-plugin' is in correct in that it duplicates the directory prefix (C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\) twice.  See below:

             

            ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMavenf5b2ab19\maven-spy-20170505-120300-155.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at

            [https://issues.jenkins-ci.org|https://issues.jenkins-ci.org/] [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]

            : java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: {color:#ff0000}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml{color} at

            [hudson.FilePath.copyRecursiveTo(FilePath.java:2215)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.copyRecursiveTo&entity=method]

            at

            [jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)|http://stacktrace.jenkins-ci.org/search/?query=jenkins.model.StandardArtifactManager.archive&entity=method]

            at

            [org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:99)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process&entity=method]

            at

            [org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:101)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs&entity=method]

            at

            [org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:770)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished&entity=method]

            at

            [org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive&entity=method]

            at

            [com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)|http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.groovy.cps.Outcome.resumeFrom&entity=method]

            at

            [com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)|http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.groovy.cps.Continuable.run0&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call&entity=method]

            at

            [org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call&entity=method]

            at

            [org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)|http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call&entity=method]

            at

            [java.util.concurrent.FutureTask.run(FutureTask.java:266)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method]

            at

            [hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.SingleLaneExecutorService$1.run&entity=method]

            at

            [jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)|http://stacktrace.jenkins-ci.org/search/?query=jenkins.util.ContextResettingExecutorService$1.run&entity=method]

            at

            [java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.Executors$RunnableAdapter.call&entity=method]

            at

            [java.util.concurrent.FutureTask.run(FutureTask.java:266)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method]

            at

            [java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method]

            at

            [java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method]

            at

            [java.lang.Thread.run(Thread.java:745)|http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method]

            Caused by:

            [java.util.concurrent.ExecutionException|http://stacktrace.jenkins-ci.org/search?query=java.util.concurrent.ExecutionException]

            : java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at

            [hudson.remoting.Channel$2.adapt(Channel.java:862)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel$2.adapt&entity=method]

            at

            [hudson.remoting.Channel$2.adapt(Channel.java:857)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel$2.adapt&entity=method]

            at

            [hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.FutureAdapter.get&entity=method]

            at

            [hudson.FilePath.copyRecursiveTo(FilePath.java:2213)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.copyRecursiveTo&entity=method]

            ... 27 more Caused by:

            [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]

            : Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml at

            [hudson.util.io.TarArchiver.visit(TarArchiver.java:110)|http://stacktrace.jenkins-ci.org/search/?query=hudson.util.io.TarArchiver.visit&entity=method]

            at

            [hudson.util.DirScanner.scanSingle(DirScanner.java:49)|http://stacktrace.jenkins-ci.org/search/?query=hudson.util.DirScanner.scanSingle&entity=method]

            at

            [hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$ExplicitlySpecifiedDirScanner.scan&entity=method]

            at

            [hudson.FilePath.writeToTar(FilePath.java:2251)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.writeToTar&entity=method]

            at

            [hudson.FilePath.access$2100(FilePath.java:195)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.access$2100&entity=method]

            at

            [hudson.FilePath$45.invoke(FilePath.java:2194)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$45.invoke&entity=method]

            at

            [hudson.FilePath$45.invoke(FilePath.java:2190)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$45.invoke&entity=method]

            at

            [hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$FileCallableWrapper.call&entity=method]

            at

            [hudson.remoting.UserRequest.perform(UserRequest.java:153)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method]

            at

            [hudson.remoting.UserRequest.perform(UserRequest.java:50)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method]

            at

            [hudson.remoting.Request$2.run(Request.java:336)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method]

            at

            [hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method]

            at

            [java.util.concurrent.FutureTask.run(FutureTask.java:266)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method]

            at

            [java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method]

            at

            [java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method]

            at

            [hudson.remoting.Engine$1$1.run(Engine.java:94)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Engine$1$1.run&entity=method]

            at

            [java.lang.Thread.run(Thread.java:745)|http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method]

            at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:50719(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804) at hudson.FilePath.writeToTar(FilePath.java:2251) at hudson.FilePath.access$2100(FilePath.java:195) at hudson.FilePath$45.invoke(FilePath.java:2194) at hudson.FilePath$45.invoke(FilePath.java:2190) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:94) ... 1 more
            Note: our build completes with SUCCESS without error or warnings on a Linux build agent.  The build completes with SUCCESS and the same outputs (except the missing non-archived pom.xml files) as the Linux build but has the warning messages displayed below.

            When running a withMaven build from a sh() build step on Windows:

            {code}
            withMaven(jdk: config['jdk'], maven: config['maven'], mavenLocalRepo: config['mavenLocalRepo'], mavenSettingsConfig: config['mavenSettingsConfig']) \{

            sh('''\\

            if [[ -e "pom.xml" ]]; then
                # Run Jenkins maven wrapper script using mvn in Unix bash or mvn.cmd in cmd.exe from     Git for Windows bash
                if [[ -z "$COMSPEC" ]]; then
                    cmd=(mvn)
                else
                    cmd=("$COMSPEC" //c mvn.cmd)
                fi
                args=(--batch-mode -U -V --settings "$MVN_SETTINGS" clean install -P "$BUILD_PROFILE" \\
                    "-DxlDeployServerAddress=$XLDEPLOY_SERVER_ADDRESS" "-DxlDeployPort=$XLDEPLOY_PORT" \\
                    "-DxlDeploySecured=$XLDEPLOY_SECURED" "-DbuildUrl=$BUILD_URL")
                eval $(printf " %q" "$\{cmd[@]}" "$\{args[@]}")
             fi''')

            }
            {code}

            We get the following error.  Note that the path that is generated for the archived pom.xml file by the 'pipeline-maven-plugin' is in correct in that it duplicates the directory prefix (C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\) twice.  See below:

             
            {noformat}
            ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMavenf5b2ab19\maven-spy-20170505-120300-155.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2215)
            at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
            at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:99)
            at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:101)
            at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:770)
            at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
            at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)
            at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
            at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
            at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
            at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
            at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
            at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
            Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.remoting.Channel$2.adapt(Channel.java:862)
            at hudson.remoting.Channel$2.adapt(Channel.java:857)
            at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2213)
            ... 27 more
            Caused by: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:110)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)|
            at hudson.FilePath.writeToTar(FilePath.java:2251)
            at hudson.FilePath.access$2100(FilePath.java:195)
            at hudson.FilePath$45.invoke(FilePath.java:2194)
            at hudson.FilePath$45.invoke(FilePath.java:2190)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
            at hudson.remoting.UserRequest.perform(UserRequest.java:153)
            at hudson.remoting.UserRequest.perform(UserRequest.java:50)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at hudson.remoting.Engine$1$1.run(Engine.java:94)
            at java.lang.Thread.run(Thread.java:745)
            at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:50719(Native Method)
            at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
            at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
            at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more
            Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml (The filename, directory name, or volume label syntax is incorrect)
            at java.io.FileInputStream.open0(Native Method)
            at java.io.FileInputStream.open(FileInputStream.java:195)
            at java.io.FileInputStream.<init>(FileInputStream.java:138)
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:103)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)
            at hudson.FilePath.writeToTar(FilePath.java:2251)
            at hudson.FilePath.access$2100(FilePath.java:195)
            at hudson.FilePath$45.invoke(FilePath.java:2194)
            at hudson.FilePath$45.invoke(FilePath.java:2190)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
            at hudson.remoting.UserRequest.perform(UserRequest.java:153)
            at hudson.remoting.UserRequest.perform(UserRequest.java:50)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at hudson.remoting.Engine$1$1.run(Engine.java:94)
            ... 1 more
            {code}
            cleclerc Cyrille Le Clerc made changes -
            Description Note: our build completes with SUCCESS without error or warnings on a Linux build agent.  The build completes with SUCCESS and the same outputs (except the missing non-archived pom.xml files) as the Linux build but has the warning messages displayed below.

            When running a withMaven build from a sh() build step on Windows:

            {code}
            withMaven(jdk: config['jdk'], maven: config['maven'], mavenLocalRepo: config['mavenLocalRepo'], mavenSettingsConfig: config['mavenSettingsConfig']) \{

            sh('''\\

            if [[ -e "pom.xml" ]]; then
                # Run Jenkins maven wrapper script using mvn in Unix bash or mvn.cmd in cmd.exe from     Git for Windows bash
                if [[ -z "$COMSPEC" ]]; then
                    cmd=(mvn)
                else
                    cmd=("$COMSPEC" //c mvn.cmd)
                fi
                args=(--batch-mode -U -V --settings "$MVN_SETTINGS" clean install -P "$BUILD_PROFILE" \\
                    "-DxlDeployServerAddress=$XLDEPLOY_SERVER_ADDRESS" "-DxlDeployPort=$XLDEPLOY_PORT" \\
                    "-DxlDeploySecured=$XLDEPLOY_SECURED" "-DbuildUrl=$BUILD_URL")
                eval $(printf " %q" "$\{cmd[@]}" "$\{args[@]}")
             fi''')

            }
            {code}

            We get the following error.  Note that the path that is generated for the archived pom.xml file by the 'pipeline-maven-plugin' is in correct in that it duplicates the directory prefix (C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\) twice.  See below:

             
            {noformat}
            ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMavenf5b2ab19\maven-spy-20170505-120300-155.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2215)
            at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
            at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:99)
            at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:101)
            at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:770)
            at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
            at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)
            at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
            at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
            at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
            at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
            at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
            at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
            Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.remoting.Channel$2.adapt(Channel.java:862)
            at hudson.remoting.Channel$2.adapt(Channel.java:857)
            at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2213)
            ... 27 more
            Caused by: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:110)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)|
            at hudson.FilePath.writeToTar(FilePath.java:2251)
            at hudson.FilePath.access$2100(FilePath.java:195)
            at hudson.FilePath$45.invoke(FilePath.java:2194)
            at hudson.FilePath$45.invoke(FilePath.java:2190)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
            at hudson.remoting.UserRequest.perform(UserRequest.java:153)
            at hudson.remoting.UserRequest.perform(UserRequest.java:50)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at hudson.remoting.Engine$1$1.run(Engine.java:94)
            at java.lang.Thread.run(Thread.java:745)
            at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:50719(Native Method)
            at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
            at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
            at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more
            Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml (The filename, directory name, or volume label syntax is incorrect)
            at java.io.FileInputStream.open0(Native Method)
            at java.io.FileInputStream.open(FileInputStream.java:195)
            at java.io.FileInputStream.<init>(FileInputStream.java:138)
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:103)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)
            at hudson.FilePath.writeToTar(FilePath.java:2251)
            at hudson.FilePath.access$2100(FilePath.java:195)
            at hudson.FilePath$45.invoke(FilePath.java:2194)
            at hudson.FilePath$45.invoke(FilePath.java:2190)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
            at hudson.remoting.UserRequest.perform(UserRequest.java:153)
            at hudson.remoting.UserRequest.perform(UserRequest.java:50)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at hudson.remoting.Engine$1$1.run(Engine.java:94)
            ... 1 more
            {code}
            Note: our build completes with SUCCESS without error or warnings on a Linux build agent.  The build completes with SUCCESS and the same outputs (except the missing non-archived pom.xml files) as the Linux build but has the warning messages displayed below.

            When running a withMaven build from a sh() build step on Windows:

            {code}
            withMaven(jdk: config['jdk'], maven: config['maven'], mavenLocalRepo: config['mavenLocalRepo'], mavenSettingsConfig: config['mavenSettingsConfig']) \{

            sh('''\\

            if [[ -e "pom.xml" ]]; then
                # Run Jenkins maven wrapper script using mvn in Unix bash or mvn.cmd in cmd.exe from     Git for Windows bash
                if [[ -z "$COMSPEC" ]]; then
                    cmd=(mvn)
                else
                    cmd=("$COMSPEC" //c mvn.cmd)
                fi
                args=(--batch-mode -U -V --settings "$MVN_SETTINGS" clean install -P "$BUILD_PROFILE" \\
                    "-DxlDeployServerAddress=$XLDEPLOY_SERVER_ADDRESS" "-DxlDeployPort=$XLDEPLOY_PORT" \\
                    "-DxlDeploySecured=$XLDEPLOY_SECURED" "-DbuildUrl=$BUILD_URL")
                eval $(printf " %q" "$\{cmd[@]}" "$\{args[@]}")
             fi''')

            }
            {code}

            We get the following error.  Note that the path that is generated for the archived pom.xml file by the 'pipeline-maven-plugin' is in correct in that it duplicates the directory prefix (C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\) twice.  See below:

             
            {noformat}
            ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMavenf5b2ab19\maven-spy-20170505-120300-155.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2215)
            at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
            at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:99)
            at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:101)
            at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:770)
            at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
            at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)
            at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
            at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
            at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
            at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
            at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
            at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
            at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
            at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
            Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.remoting.Channel$2.adapt(Channel.java:862)
            at hudson.remoting.Channel$2.adapt(Channel.java:857)
            at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
            at hudson.FilePath.copyRecursiveTo(FilePath.java:2213)
            ... 27 more
            Caused by: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:110)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)|
            at hudson.FilePath.writeToTar(FilePath.java:2251)
            at hudson.FilePath.access$2100(FilePath.java:195)
            at hudson.FilePath$45.invoke(FilePath.java:2194)
            at hudson.FilePath$45.invoke(FilePath.java:2190)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
            at hudson.remoting.UserRequest.perform(UserRequest.java:153)
            at hudson.remoting.UserRequest.perform(UserRequest.java:50)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at hudson.remoting.Engine$1$1.run(Engine.java:94)
            at java.lang.Thread.run(Thread.java:745)
            at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:50719(Native Method)
            at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
            at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
            at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more
            Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\BREJBOSSDeployTestDevWeb\pom.xml (The filename, directory name, or volume label syntax is incorrect)
            at java.io.FileInputStream.open0(Native Method)
            at java.io.FileInputStream.open(FileInputStream.java:195)
            at java.io.FileInputStream.<init>(FileInputStream.java:138)
            at hudson.util.io.TarArchiver.visit(TarArchiver.java:103)
            at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
            at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)
            at hudson.FilePath.writeToTar(FilePath.java:2251)
            at hudson.FilePath.access$2100(FilePath.java:195)
            at hudson.FilePath$45.invoke(FilePath.java:2194)
            at hudson.FilePath$45.invoke(FilePath.java:2190)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
            at hudson.remoting.UserRequest.perform(UserRequest.java:153)
            at hudson.remoting.UserRequest.perform(UserRequest.java:50)
            at hudson.remoting.Request$2.run(Request.java:336)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at hudson.remoting.Engine$1$1.run(Engine.java:94)
            ... 1 more
            {noformat}
            cleclerc Cyrille Le Clerc made changes -
            Link This issue duplicates JENKINS-43617 [ JENKINS-43617 ]
            cleclerc Cyrille Le Clerc made changes -
            Assignee Alvaro Lobato [ alobato ] Cyrille Le Clerc [ cleclerc ]
            Show
            cleclerc Cyrille Le Clerc added a comment - WIP  https://github.com/jenkinsci/pipeline-maven-plugin/pull/49
            Hide
            cleclerc Cyrille Le Clerc added a comment - - edited

            Please test the Pipeline Maven Plugin version 2.2.0 and confirm that this bug is fixed.

            https://github.com/jenkinsci/pipeline-maven-plugin/releases/tag/pipeline-maven-parent-2.2.0

            Show
            cleclerc Cyrille Le Clerc added a comment - - edited Please test the Pipeline Maven Plugin version 2.2.0 and confirm that this bug is fixed. https://github.com/jenkinsci/pipeline-maven-plugin/releases/tag/pipeline-maven-parent-2.2.0
            cleclerc Cyrille Le Clerc made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Show
            cleclerc Cyrille Le Clerc added a comment - See sample https://gist.github.com/cyrille-leclerc/f6d1f933e6a36244c1a0e3c4ed413f09
            Hide
            flstaats Frederick Staats added a comment -

            I still have the issue with paths like:

            C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml

             

            Here is one of the stacktraces from the log with the 2.2.0 plugin installed:

            ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMaven0e5e0e49\maven-spy-20170508-075830-859.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at

            https://issues.jenkins-ci.org java.io.IOException

            : Exception archiving {com/standard/bre/testapp/BREJBOSSDeployTestDev-Parent/1.0.56-SNAPSHOT/BREJBOSSDeployTestDev-Parent-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml} at

            org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:114)

            at

            org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:103)

            at

            org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:850)

            at

            org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)

            at

            org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)

            at

            com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)

            at

            com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)

            at

            org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)

            at

            org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242)

            at

            org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230)

            at

            org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)

            at

            java.util.concurrent.FutureTask.run(FutureTask.java:266)

            at

            hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)

            at

            jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)

            at

            java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

            at

            java.util.concurrent.FutureTask.run(FutureTask.java:266)

            at

            java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

            at

            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

            at

            java.lang.Thread.run(Thread.java:745)

            Caused by:

            java.io.IOException

            : java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml at

            hudson.FilePath.copyRecursiveTo(FilePath.java:2215)

            at

            jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)

            at

            org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:112)

            ... 25 more Caused by:

            java.util.concurrent.ExecutionException

            : java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml at

            hudson.remoting.Channel$2.adapt(Channel.java:862)

            at

            hudson.remoting.Channel$2.adapt(Channel.java:857)

            at

            hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)

            at

            hudson.FilePath.copyRecursiveTo(FilePath.java:2213)

            ... 27 more Caused by:

            java.io.IOException

            : Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml at

            hudson.util.io.TarArchiver.visit(TarArchiver.java:110)

            at

            hudson.util.DirScanner.scanSingle(DirScanner.java:49)

            at

            hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804)

            at

            hudson.FilePath.writeToTar(FilePath.java:2251)

            at

            hudson.FilePath.access$2100(FilePath.java:195)

            at

            hudson.FilePath$45.invoke(FilePath.java:2194)

            at

            hudson.FilePath$45.invoke(FilePath.java:2190)

            at

            hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)

            at

            hudson.remoting.UserRequest.perform(UserRequest.java:153)

            at

            hudson.remoting.UserRequest.perform(UserRequest.java:50)

            at

            hudson.remoting.Request$2.run(Request.java:336)

            at

            hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)

            at

            java.util.concurrent.FutureTask.run(FutureTask.java:266)

            at

            java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

            at

            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

            at

            hudson.remoting.Engine$1$1.run(Engine.java:94)

            at

            java.lang.Thread.run(Thread.java:745)

            at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:55703(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804) at hudson.FilePath.writeToTar(FilePath.java:2251) at hudson.FilePath.access$2100(FilePath.java:195) at hudson.FilePath$45.invoke(FilePath.java:2194) at hudson.FilePath$45.invoke(FilePath.java:2190) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:94) ... 1 more

            Show
            flstaats Frederick Staats added a comment - I still have the issue with paths like: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml   Here is one of the stacktraces from the log with the 2.2.0 plugin installed: ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp\withMaven0e5e0e49\maven-spy-20170508-075830-859.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org java.io.IOException : Exception archiving {com/standard/bre/testapp/BREJBOSSDeployTestDev-Parent/1.0.56-SNAPSHOT/BREJBOSSDeployTestDev-Parent-1.0.56-SNAPSHOT.pom=C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml} at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:114) at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:103) at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:850) at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114) at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362) at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:146) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException : java.util.concurrent.ExecutionException: java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml at hudson.FilePath.copyRecursiveTo(FilePath.java:2215) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at org.jenkinsci.plugins.pipeline.maven.reporters.GeneratedArtifactsReporter.process(GeneratedArtifactsReporter.java:112) ... 25 more Caused by: java.util.concurrent.ExecutionException : java.io.IOException: Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml at hudson.remoting.Channel$2.adapt(Channel.java:862) at hudson.remoting.Channel$2.adapt(Channel.java:857) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.FilePath.copyRecursiveTo(FilePath.java:2213) ... 27 more Caused by: java.io.IOException : Error writing to tar file from: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml at hudson.util.io.TarArchiver.visit(TarArchiver.java:110) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804) at hudson.FilePath.writeToTar(FilePath.java:2251) at hudson.FilePath.access$2100(FilePath.java:195) at hudson.FilePath$45.invoke(FilePath.java:2194) at hudson.FilePath$45.invoke(FilePath.java:2190) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:94) at java.lang.Thread.run(Thread.java:745) at ......remote call to JNLP4-connect connection from hlbwbdgtd101.corp.standard.com/192.168.137.149:55703(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel$2.adapt(Channel.java:860) ... 30 more Caused by: java.io.FileNotFoundException: C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ{color}C:\Jenkins\workspace\EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ\pom.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2804) at hudson.FilePath.writeToTar(FilePath.java:2251) at hudson.FilePath.access$2100(FilePath.java:195) at hudson.FilePath$45.invoke(FilePath.java:2194) at hudson.FilePath$45.invoke(FilePath.java:2190) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:94) ... 1 more
            Hide
            flstaats Frederick Staats added a comment -

            See my latest comment.  I still have the issue on 2.2.0.

            Show
            flstaats Frederick Staats added a comment - See my latest comment.  I still have the issue on 2.2.0.
            flstaats Frederick Staats made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Hide
            cleclerc Cyrille Le Clerc added a comment - - edited

            Frederick Staats I am lost. I would like to verify that my test made on windows 10 works on your environment. My test is described in https://gist.github.com/cyrille-leclerc/cd70602f430035cf735796ac29ec46a0

            Can you test the following:

            • Verify that you have installed pipeline-maven-plugin 2.2.0 and restart Jenkins just to be sure that the new version is loaded
            • * Enable logging on "org.jenkinsci.plugins.pipeline.maven" so that additional log message are added in the build logs
            • Execute a Jenkins pipeline job on master with the following script
              node{
                stage ('Build') {
                  git url: 'https://github.com/spring-projects/spring-petclinic.git'
                  withMaven() {
                    bat "mvn clean install"
                  }
                }
              }
              
            • Capture the full logs of the build and especially look at the line "[withMaven] Archive and fingerprint..." at the end of the logs:
              ...
              [withMaven]  Evaluate Maven Spy logs: C:\Users\IEUser\.jenkins\workspace\spring-petclinic@tmp\withMaven3127e830\maven-spy-20170509-082013-576.log
              [withMaven] Archive artifact pom.xml under org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.pom
              [withMaven] Archive artifact target\spring-petclinic-1.5.1.jar under org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.jar
              [withMaven] Archive and fingerprint {org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.jar=target\spring-petclinic-1.5.1.jar, org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.pom=pom.xml}
              [withMaven] Archive test results for Maven artifact MavenArtifact{org.springframework.samples:spring-petclinic::1.5.1} generated by PluginInvocation{org.apache.maven.plugins:maven-surefire-plugin:2.18.1@test  default-test}: target/surefire-reports\*.xml
              Recording test results
              [withMaven] Archive test results for Maven artifact MavenArtifact{org.springframework.samples:spring-petclinic::1.5.1} generated by PluginInvocation{org.apache.maven.plugins:maven-surefire-plugin:2.18.1@test  default-test}: target/surefire-reports\*.xml
              Recording test results
              [withMaven] No org.apache.maven.plugins:maven-failsafe-plugin:integration-test execution found
              [withMaven] Scan Tasks for Maven artifact MavenArtifact{org.springframework.samples:spring-petclinic::1.5.1} in source directory src\main\java
              [TASKS] Scanning folder 'C:\Users\IEUser\.jenkins\workspace\spring-petclinic' for files matching the pattern 'src\main\java\**\*' - excludes: null
              [TASKS] Found 25 files to scan for tasks
              [TASKS] Found 0 open tasks.
              [TASKS] Computing warning deltas based on reference build #11
              
            Show
            cleclerc Cyrille Le Clerc added a comment - - edited Frederick Staats I am lost. I would like to verify that my test made on windows 10 works on your environment. My test is described in https://gist.github.com/cyrille-leclerc/cd70602f430035cf735796ac29ec46a0 Can you test the following: Verify that you have installed pipeline-maven-plugin 2.2.0 and restart Jenkins just to be sure that the new version is loaded * Enable logging on "org.jenkinsci.plugins.pipeline.maven" so that additional log message are added in the build logs Execute a Jenkins pipeline job on master with the following script node{ stage ( 'Build' ) { git url: 'https: //github.com/spring-projects/spring-petclinic.git' withMaven() { bat "mvn clean install" } } } Capture the full logs of the build and especially look at the line " [withMaven] Archive and fingerprint..." at the end of the logs: ... [withMaven] Evaluate Maven Spy logs: C:\Users\IEUser\.jenkins\workspace\spring-petclinic@tmp\withMaven3127e830\maven-spy-20170509-082013-576.log [withMaven] Archive artifact pom.xml under org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.pom [withMaven] Archive artifact target\spring-petclinic-1.5.1.jar under org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.jar [withMaven] Archive and fingerprint {org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.jar=target\spring-petclinic-1.5.1.jar, org\springframework\samples\spring-petclinic\1.5.1\spring-petclinic-1.5.1.pom=pom.xml} [withMaven] Archive test results for Maven artifact MavenArtifact{org.springframework.samples:spring-petclinic::1.5.1} generated by PluginInvocation{org.apache.maven.plugins:maven-surefire-plugin:2.18.1@test default-test}: target/surefire-reports\*.xml Recording test results [withMaven] Archive test results for Maven artifact MavenArtifact{org.springframework.samples:spring-petclinic::1.5.1} generated by PluginInvocation{org.apache.maven.plugins:maven-surefire-plugin:2.18.1@test default-test}: target/surefire-reports\*.xml Recording test results [withMaven] No org.apache.maven.plugins:maven-failsafe-plugin:integration-test execution found [withMaven] Scan Tasks for Maven artifact MavenArtifact{org.springframework.samples:spring-petclinic::1.5.1} in source directory src\main\java [TASKS] Scanning folder 'C:\Users\IEUser\.jenkins\workspace\spring-petclinic' for files matching the pattern 'src\main\java\**\*' - excludes: null [TASKS] Found 25 files to scan for tasks [TASKS] Found 0 open tasks. [TASKS] Computing warning deltas based on reference build #11
            flstaats Frederick Staats made changes -
            Attachment log.txt [ 37707 ]
            Hide
            flstaats Frederick Staats added a comment -

            It does not work.

            I ran your requested test with the following updates after validating that 2.2.0 was installed with a restart on my Windows 2012 R2 build server.

            I'm inside a corporate firewall so the spring-petclinic.git was duplicated to our GitHub Enterprise server and the build script was updated with credentials and auto installed tool versions:

             

            node('windows') {
              stage ('Build') {
                git credentialsId: '211034b1-52e8-4d0f-953e-923716c6cff8', url: 'https://github.standard.com/ITSD/spring-petclinic.git'
                withMaven(jdk: 'jdk-1.8.0_121', maven: 'apache-maven-3.3.9', mavenLocalRepo: '.repository', mavenSettingsConfig: '1d55aa95-f6d2-4b10-af3d-5474d71f9de0') {
                  bat "mvn clean install"
                }
              }
            }
            

            I updated the logger for org.jenkinsci.plugins.pipeline.maven to log "ALL", here is the output:

            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Maven: apache-maven-3.3.9
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Jdk: jdk-1.8.0_121
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            MavenOpts: 
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings Config: 1d55aa95-f6d2-4b10-af3d-5474d71f9de0
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings FilePath: 
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings Config: null
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings FilePath: 
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Computer: hlbwbdgtd101 windows x64
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Env: {ALLUSERSPROFILE=C:\ProgramData, APPDATA=C:\Users\svc_jenkins_np\AppData\Roaming, BASE=C:\Jenkins, CommonProgramFiles=C:\Program Files\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=HLBWBDGTD101, ComSpec=C:\Windows\system32\cmd.exe, FP_NO_HOST_CHECK=NO, LOCALAPPDATA=C:\Users\svc_jenkins_np\AppData\Local, NUMBER_OF_PROCESSORS=2, OS=Windows_NT, Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Puppet Labs\Puppet\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\usr\bin;C:\Bretools\bretools-1.0.4\Git\gitlfs-1.5.5, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 0, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=3f00, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files, ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, SERVICE_ID=jenkinsslave-C__Jenkins, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\SVC_JE~1\AppData\Local\Temp, TMP=C:\Users\SVC_JE~1\AppData\Local\Temp, UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77, USERDNSDOMAIN=CORP.STANDARD.COM, USERDOMAIN=SIC, USERNAME=svc_jenkins_np, USERPROFILE=C:\Users\svc_jenkins_np, windir=C:\Windows, WINSW_EXECUTABLE=C:\Jenkins\jenkins-slave.exe}
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Setting up maven: apache-maven-3.3.9
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found maven installation apache-maven-3.3.9 with installation home null
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found exec for maven on: C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Using temp dir: C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load embedded maven spy jar 'META-INF/lib/pipeline-maven-spy.jar'
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load META-INF/lib/pipeline-maven-spy.jar using classloader class hudson.ClassicPluginStrategy$AntClassLoader2: AntClassLoader[/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/commons-lang-2.6.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/groovy-sandbox-1.10.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/joda-time-2.9.5.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/pipeline-maven.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/xml-apis-1.4.01.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/annotation-indexer-1.9.jar]
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Generated wrapper: @echo off
            echo ----- withMaven Wrapper script -----
            C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd --settings C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806/settings.xml -Dmaven.repo.local=C:/Jenkins/workspace/maven-pipeline-plugin-test/.repository --batch-mode --show-version %*
            
            May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Overrides: {JAVA_HOME=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121, JAVA_TOOL_OPTIONS=-Dmaven.ext.class.path="C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806" , M2_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MAVEN_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MVN_SETTINGS=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806/settings.xml, PATH+JDK=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121/bin, PATH+MAVEN=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806}
            May 09, 2017 2:21:07 PM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor
            Found 1 maven execution reports in C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806
            May 09, 2017 2:21:07 PM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor
            Look for generated artifacts to archive, file C:/Jenkins/workspace/maven-pipeline-plugin-test/.skip-archive-generated-artifacts NOT found in workspace
            

            Also attached is the full text of the pipeline build log log.txt, note the exception is still there.

             

             

            Show
            flstaats Frederick Staats added a comment - It does not work. I ran your requested test with the following updates after validating that 2.2.0 was installed with a restart on my Windows 2012 R2 build server. I'm inside a corporate firewall so the spring-petclinic.git was duplicated to our GitHub Enterprise server and the build script was updated with credentials and auto installed tool versions:   node( 'windows' ) { stage ( 'Build' ) { git credentialsId: '211034b1-52e8-4d0f-953e-923716c6cff8' , url: 'https: //github.standard.com/ITSD/spring-petclinic.git' withMaven(jdk: 'jdk-1.8.0_121' , maven: 'apache-maven-3.3.9' , mavenLocalRepo: '.repository' , mavenSettingsConfig: '1d55aa95-f6d2-4b10-af3d-5474d71f9de0' ) { bat "mvn clean install" } } } I updated the logger for org.jenkinsci.plugins.pipeline.maven to log "ALL", here is the output: May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Maven: apache-maven-3.3.9 May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Jdk: jdk-1.8.0_121 May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution MavenOpts: May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Settings Config: 1d55aa95-f6d2-4b10-af3d-5474d71f9de0 May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Settings FilePath: May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Global settings Config: null May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Global settings FilePath: May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Computer: hlbwbdgtd101 windows x64 May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Env: {ALLUSERSPROFILE=C:\ProgramData, APPDATA=C:\Users\svc_jenkins_np\AppData\Roaming, BASE=C:\Jenkins, CommonProgramFiles=C:\Program Files\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=HLBWBDGTD101, ComSpec=C:\Windows\system32\cmd.exe, FP_NO_HOST_CHECK=NO, LOCALAPPDATA=C:\Users\svc_jenkins_np\AppData\Local, NUMBER_OF_PROCESSORS=2, OS=Windows_NT, Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Puppet Labs\Puppet\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\usr\bin;C:\Bretools\bretools-1.0.4\Git\gitlfs-1.5.5, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 0, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=3f00, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files, ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, SERVICE_ID=jenkinsslave-C__Jenkins, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\SVC_JE~1\AppData\Local\Temp, TMP=C:\Users\SVC_JE~1\AppData\Local\Temp, UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77, USERDNSDOMAIN=CORP.STANDARD.COM, USERDOMAIN=SIC, USERNAME=svc_jenkins_np, USERPROFILE=C:\Users\svc_jenkins_np, windir=C:\Windows, WINSW_EXECUTABLE=C:\Jenkins\jenkins-slave.exe} May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Setting up maven: apache-maven-3.3.9 May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Found maven installation apache-maven-3.3.9 with installation home null May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Found exec for maven on: C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Using temp dir: C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806 May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Load embedded maven spy jar 'META-INF/lib/pipeline-maven-spy.jar' May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Load META-INF/lib/pipeline-maven-spy.jar using classloader class hudson.ClassicPluginStrategy$AntClassLoader2: AntClassLoader[/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/commons-lang-2.6.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/groovy-sandbox-1.10.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/joda-time-2.9.5.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/pipeline-maven.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/xml-apis-1.4.01.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/annotation-indexer-1.9.jar] May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Generated wrapper: @echo off echo ----- withMaven Wrapper script ----- C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd --settings C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806/settings.xml -Dmaven.repo.local=C:/Jenkins/workspace/maven-pipeline-plugin-test/.repository --batch-mode --show-version %* May 09, 2017 2:20:20 PM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Overrides: {JAVA_HOME=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121, JAVA_TOOL_OPTIONS=-Dmaven.ext. class. path= "C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder= "C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806" , M2_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MAVEN_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MVN_SETTINGS=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806/settings.xml, PATH+JDK=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121/bin, PATH+MAVEN=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806} May 09, 2017 2:21:07 PM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor Found 1 maven execution reports in C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven2c2f7806 May 09, 2017 2:21:07 PM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor Look for generated artifacts to archive, file C:/Jenkins/workspace/maven-pipeline-plugin-test/.skip-archive-generated-artifacts NOT found in workspace Also attached is the full text of the pipeline build log  log.txt , note the exception is still there.    
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Frederick Staats thanks, the only difference I see is that you are launching your test from a Linux master on a windows agent when I am build directly on a windows master. I suspect that the cause is there. I have to reproduce

            Show
            cleclerc Cyrille Le Clerc added a comment - Frederick Staats thanks, the only difference I see is that you are launching your test from a Linux master on a windows agent when I am build directly on a windows master. I suspect that the cause is there. I have to reproduce
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Cyrille Le Clerc
            Path:
            jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java
            jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java
            http://jenkins-ci.org/commit/pipeline-maven-plugin/d9736e69f64400d1601224855451b4e5618ff017
            Log:
            JENKINS-44088 better troubleshooting messages

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java http://jenkins-ci.org/commit/pipeline-maven-plugin/d9736e69f64400d1601224855451b4e5618ff017 Log: JENKINS-44088 better troubleshooting messages
            cleclerc Cyrille Le Clerc made changes -
            Attachment pipeline-maven-20170510-1407.hpi [ 37722 ]
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Frederick Staats I could not reproduce with a MacOSX master triggering the build on a Windows 10 JNLP agent: https://gist.github.com/cyrille-leclerc/897169ade8b6dbb80de50fcb078eaa79

            I have added troubleshooting messages, can you test the latest snapshot either using the attached pipeline-maven-20170510-1407.hpi or building it yourself?

             

            Show
            cleclerc Cyrille Le Clerc added a comment - Frederick Staats I could not reproduce with a MacOSX master triggering the build on a Windows 10 JNLP agent: https://gist.github.com/cyrille-leclerc/897169ade8b6dbb80de50fcb078eaa79 I have added troubleshooting messages, can you test the latest snapshot either using the attached  pipeline-maven-20170510-1407.hpi  or building it yourself?  
            Hide
            cleclerc Cyrille Le Clerc added a comment - - edited

            James Nord could you by any chance test the following pipeline on a windows agent with pipeline-maven-plugin 2.2.0. Frederick Staats is facing a problem that I cannot reproduce.

            The result of my test is detailed https://gist.github.com/cyrille-leclerc/897169ade8b6dbb80de50fcb078eaa79

            node{
              stage ('Build') {
                git url: 'https://github.com/spring-projects/spring-petclinic.git'
                withMaven() {
                  bat "mvn clean install"
                }
              }
            }
            
            Show
            cleclerc Cyrille Le Clerc added a comment - - edited James Nord could you by any chance test the following pipeline on a windows agent with pipeline-maven-plugin 2.2.0. Frederick Staats is facing a problem that I cannot reproduce. The result of my test is detailed https://gist.github.com/cyrille-leclerc/897169ade8b6dbb80de50fcb078eaa79 node{ stage ( 'Build' ) { git url: 'https: //github.com/spring-projects/spring-petclinic.git' withMaven() { bat "mvn clean install" } } }
            flstaats Frederick Staats made changes -
            Attachment log.txt [ 37727 ]
            flstaats Frederick Staats made changes -
            Attachment log.txt [ 37728 ]
            flstaats Frederick Staats made changes -
            Comment [ As requested I've run again with maven-pipeline-plugin [2.2.1-SNAPSHOT (private-d9736e69-cyrilleleclerc)|https://jenkins-dev.standard.com:8443/pluginManager/plugin/pipeline-maven/thirdPartyLicenses]

            Build log on for the maven build [^log.txt]

            From org.jenkinsci.plugins.pipeline.maven logging with ALL:

             
            {code:java}
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Maven: apache-maven-3.3.9
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Jdk: jdk-1.8.0_121
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            MavenOpts:
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings Config: 1d55aa95-f6d2-4b10-af3d-5474d71f9de0
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings FilePath:
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings Config: null
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings FilePath:
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Computer: hlbwbdgtd101 windows x64
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Env: {ALLUSERSPROFILE=C:\ProgramData, APPDATA=C:\Users\svc_jenkins_np\AppData\Roaming, BASE=C:\Jenkins, CommonProgramFiles=C:\Program Files\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=HLBWBDGTD101, ComSpec=C:\Windows\system32\cmd.exe, FP_NO_HOST_CHECK=NO, LOCALAPPDATA=C:\Users\svc_jenkins_np\AppData\Local, NUMBER_OF_PROCESSORS=2, OS=Windows_NT, Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Puppet Labs\Puppet\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\usr\bin;C:\Bretools\bretools-1.0.4\Git\gitlfs-1.5.5, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 0, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=3f00, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files, ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, SERVICE_ID=jenkinsslave-C__Jenkins, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\SVC_JE~1\AppData\Local\Temp, TMP=C:\Users\SVC_JE~1\AppData\Local\Temp, UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77, USERDNSDOMAIN=CORP.STANDARD.COM, USERDOMAIN=SIC, USERNAME=svc_jenkins_np, USERPROFILE=C:\Users\svc_jenkins_np, windir=C:\Windows, WINSW_EXECUTABLE=C:\Jenkins\jenkins-slave.exe}
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Setting up maven: apache-maven-3.3.9
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found maven installation apache-maven-3.3.9 with installation home null
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found exec for maven on: C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Using temp dir: C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven40b2d184
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load embedded maven spy jar 'META-INF/lib/pipeline-maven-spy.jar'
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load META-INF/lib/pipeline-maven-spy.jar using classloader class hudson.ClassicPluginStrategy$AntClassLoader2: AntClassLoader[/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/commons-lang-2.6.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/groovy-sandbox-1.10.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/joda-time-2.9.5.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/pipeline-maven.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/xml-apis-1.4.01.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/annotation-indexer-1.9.jar]
            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Generated wrapper: @echo off
            echo ----- withMaven Wrapper script -----
            C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd --settings C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven40b2d184/settings.xml -Dmaven.repo.local=C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ/.repository --batch-mode --show-version %*

            May 10, 2017 11:07:09 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Overrides: {JAVA_HOME=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121, JAVA_TOOL_OPTIONS=-Dmaven.ext.class.path="C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven40b2d184/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven40b2d184" , M2_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MAVEN_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MVN_SETTINGS=C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven40b2d184/settings.xml, PATH+JDK=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121/bin, PATH+MAVEN=C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven40b2d184}
            May 10, 2017 11:07:51 AM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor
            Found 2 maven execution reports in C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven40b2d184
            May 10, 2017 11:07:51 AM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor
            Look for generated artifacts to archive, file C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ/.skip-archive-generated-artifacts NOT found in workspace
            May 10, 2017 11:07:51 AM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor
            Look for generated artifacts to archive, file C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ/.skip-archive-generated-artifacts NOT found in workspace
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Maven: apache-maven-3.3.9
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Jdk: jdk-1.8.0_121
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            MavenOpts:
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings Config: 1d55aa95-f6d2-4b10-af3d-5474d71f9de0
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings FilePath:
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings Config: null
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings FilePath:
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Computer: hlbwbdgtd101 windows x64
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Env: {ALLUSERSPROFILE=C:\ProgramData, APPDATA=C:\Users\svc_jenkins_np\AppData\Roaming, BASE=C:\Jenkins, CommonProgramFiles=C:\Program Files\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=HLBWBDGTD101, ComSpec=C:\Windows\system32\cmd.exe, FP_NO_HOST_CHECK=NO, LOCALAPPDATA=C:\Users\svc_jenkins_np\AppData\Local, NUMBER_OF_PROCESSORS=2, OS=Windows_NT, Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Puppet Labs\Puppet\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\usr\bin;C:\Bretools\bretools-1.0.4\Git\gitlfs-1.5.5, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 0, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=3f00, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files, ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, SERVICE_ID=jenkinsslave-C__Jenkins, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\SVC_JE~1\AppData\Local\Temp, TMP=C:\Users\SVC_JE~1\AppData\Local\Temp, UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77, USERDNSDOMAIN=CORP.STANDARD.COM, USERDOMAIN=SIC, USERNAME=svc_jenkins_np, USERPROFILE=C:\Users\svc_jenkins_np, windir=C:\Windows, WINSW_EXECUTABLE=C:\Jenkins\jenkins-slave.exe}
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Setting up maven: apache-maven-3.3.9
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found maven installation apache-maven-3.3.9 with installation home null
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found exec for maven on: C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Using temp dir: C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven94701feb
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load embedded maven spy jar 'META-INF/lib/pipeline-maven-spy.jar'
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load META-INF/lib/pipeline-maven-spy.jar using classloader class hudson.ClassicPluginStrategy$AntClassLoader2: AntClassLoader[/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/commons-lang-2.6.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/groovy-sandbox-1.10.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/joda-time-2.9.5.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/pipeline-maven.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/xml-apis-1.4.01.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/annotation-indexer-1.9.jar]
            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Generated wrapper: @echo off
            echo ----- withMaven Wrapper script -----
            C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd --settings C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven94701feb/settings.xml -Dmaven.repo.local=C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ/.repository --batch-mode --show-version %*

            May 10, 2017 11:07:53 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Overrides: {JAVA_HOME=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121, JAVA_TOOL_OPTIONS=-Dmaven.ext.class.path="C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven94701feb/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven94701feb" , M2_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MAVEN_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MVN_SETTINGS=C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven94701feb/settings.xml, PATH+JDK=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121/bin, PATH+MAVEN=C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven94701feb}
            May 10, 2017 11:08:19 AM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor
            Found 1 maven execution reports in C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ@tmp/withMaven94701feb
            May 10, 2017 11:08:19 AM FINE org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor
            Look for generated artifacts to archive, file C:/Jenkins/workspace/EJBOSSDeployTestDev_develop-2OFPXUJSF6HFU25YUKSWFWG43K6VCJBQJOLEUCRP2WYWTF57AETQ/.skip-archive-generated-artifacts NOT found in workspace
            {code}
             

              ]
            flstaats Frederick Staats made changes -
            Attachment log.txt [ 37729 ]
            Hide
            flstaats Frederick Staats added a comment -

            As requested I've run again with maven-pipeline-plugin 2.2.1-SNAPSHOT (private-d9736e69-cyrilleleclerc)

            Build log on for the maven build log.txt

            From org.jenkinsci.plugins.pipeline.maven logging with ALL:

            org.jenkinsci.plugins.pipeline.maven
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Maven: apache-maven-3.3.9
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Jdk: jdk-1.8.0_121
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            MavenOpts: 
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings Config: 1d55aa95-f6d2-4b10-af3d-5474d71f9de0
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Settings FilePath: 
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings Config: null
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Global settings FilePath: 
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Computer: hlbwbdgtd101 windows x64
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Env: {ALLUSERSPROFILE=C:\ProgramData, APPDATA=C:\Users\svc_jenkins_np\AppData\Roaming, BASE=C:\Jenkins, CommonProgramFiles=C:\Program Files\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=HLBWBDGTD101, ComSpec=C:\Windows\system32\cmd.exe, FP_NO_HOST_CHECK=NO, LOCALAPPDATA=C:\Users\svc_jenkins_np\AppData\Local, NUMBER_OF_PROCESSORS=2, OS=Windows_NT, Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Puppet Labs\Puppet\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\usr\bin;C:\Bretools\bretools-1.0.4\Git\gitlfs-1.5.5, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 0, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=3f00, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files, ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, SERVICE_ID=jenkinsslave-C__Jenkins, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\SVC_JE~1\AppData\Local\Temp, TMP=C:\Users\SVC_JE~1\AppData\Local\Temp, UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77, USERDNSDOMAIN=CORP.STANDARD.COM, USERDOMAIN=SIC, USERNAME=svc_jenkins_np, USERPROFILE=C:\Users\svc_jenkins_np, windir=C:\Windows, WINSW_EXECUTABLE=C:\Jenkins\jenkins-slave.exe}
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Setting up maven: apache-maven-3.3.9
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found maven installation apache-maven-3.3.9 with installation home null
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Found exec for maven on: C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Using temp dir: C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load embedded maven spy jar 'META-INF/lib/pipeline-maven-spy.jar'
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Load META-INF/lib/pipeline-maven-spy.jar using classloader class hudson.ClassicPluginStrategy$AntClassLoader2: AntClassLoader[/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/commons-lang-2.6.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/groovy-sandbox-1.10.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/joda-time-2.9.5.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/pipeline-maven.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/xml-apis-1.4.01.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/annotation-indexer-1.9.jar]
            May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Generated wrapper: @echo off
            echo ----- withMaven Wrapper script -----
            C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd --settings C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b/settings.xml -Dmaven.repo.local=C:/Jenkins/workspace/maven-pipeline-plugin-test/.repository --batch-mode --show-version %*
            
            May 10, 2017 11:16:45 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution
            Overrides: {JAVA_HOME=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121, JAVA_TOOL_OPTIONS=-Dmaven.ext.class.path="C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b" , M2_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MAVEN_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MVN_SETTINGS=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b/settings.xml, PATH+JDK=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121/bin, PATH+MAVEN=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b}
            
            Show
            flstaats Frederick Staats added a comment - As requested I've run again with maven-pipeline-plugin  2.2.1-SNAPSHOT (private-d9736e69-cyrilleleclerc) Build log on for the maven build  log.txt From org.jenkinsci.plugins.pipeline.maven logging with ALL: org.jenkinsci.plugins.pipeline.maven May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Maven: apache-maven-3.3.9 May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Jdk: jdk-1.8.0_121 May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution MavenOpts: May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Settings Config: 1d55aa95-f6d2-4b10-af3d-5474d71f9de0 May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Settings FilePath: May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Global settings Config: null May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Global settings FilePath: May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Computer: hlbwbdgtd101 windows x64 May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Env: {ALLUSERSPROFILE=C:\ProgramData, APPDATA=C:\Users\svc_jenkins_np\AppData\Roaming, BASE=C:\Jenkins, CommonProgramFiles=C:\Program Files\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=HLBWBDGTD101, ComSpec=C:\Windows\system32\cmd.exe, FP_NO_HOST_CHECK=NO, LOCALAPPDATA=C:\Users\svc_jenkins_np\AppData\Local, NUMBER_OF_PROCESSORS=2, OS=Windows_NT, Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Puppet Labs\Puppet\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\bin;C:\Bretools\bretools-1.0.4\Git\git-2.11.0.3\usr\bin;C:\Bretools\bretools-1.0.4\Git\gitlfs-1.5.5, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 0, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=3f00, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files, ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, SERVICE_ID=jenkinsslave-C__Jenkins, SystemDrive=C:, SystemRoot=C:\Windows, TEMP=C:\Users\SVC_JE~1\AppData\Local\Temp, TMP=C:\Users\SVC_JE~1\AppData\Local\Temp, UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77, USERDNSDOMAIN=CORP.STANDARD.COM, USERDOMAIN=SIC, USERNAME=svc_jenkins_np, USERPROFILE=C:\Users\svc_jenkins_np, windir=C:\Windows, WINSW_EXECUTABLE=C:\Jenkins\jenkins-slave.exe} May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Setting up maven: apache-maven-3.3.9 May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Found maven installation apache-maven-3.3.9 with installation home null May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Found exec for maven on: C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Using temp dir: C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Load embedded maven spy jar 'META-INF/lib/pipeline-maven-spy.jar' May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Load META-INF/lib/pipeline-maven-spy.jar using classloader class hudson.ClassicPluginStrategy$AntClassLoader2: AntClassLoader[/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/commons-lang-2.6.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/groovy-sandbox-1.10.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/joda-time-2.9.5.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/pipeline-maven.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/xml-apis-1.4.01.jar:/opt/apps/jenkins/plugins/pipeline-maven/WEB-INF/lib/annotation-indexer-1.9.jar] May 10, 2017 11:16:44 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Generated wrapper: @echo off echo ----- withMaven Wrapper script ----- C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\apache-maven-3.3.9\apache-maven-3.3.9\bin\mvn.cmd --settings C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b/settings.xml -Dmaven.repo.local=C:/Jenkins/workspace/maven-pipeline-plugin-test/.repository --batch-mode --show-version %* May 10, 2017 11:16:45 AM FINE org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution Overrides: {JAVA_HOME=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121, JAVA_TOOL_OPTIONS=-Dmaven.ext. class. path= "C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder= "C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b" , M2_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MAVEN_HOME=C:/Jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.3.9/apache-maven-3.3.9, MVN_SETTINGS=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b/settings.xml, PATH+JDK=C:/Jenkins/tools/hudson.model.JDK/jdk-1.8.0_121/jdk1.8.0_121/bin, PATH+MAVEN=C:/Jenkins/workspace/maven-pipeline-plugin-test@tmp/withMaven6f44421b}
            Hide
            teilo James Nord added a comment -

            running with Jenkins 2.46.2 on windows 10 (no agents configured) the petclinic example worked fine for me with 2.2.0 of the plugin (with the exception that corbetura seemed to complain during its invocation)

            ...
            [INFO] Cobertura: Loaded information on 24 classes.
            
            [ERROR] Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="C:\workarea\wars\JENKINS-44088\workspace\petclinic@tmp\withMaven80a90cd0\pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="C:\workarea\wars\JENKINS-44088\workspace\petclinic@tmp\withMaven80a90cd0" 
            
            [INFO] All checks passed.
            ...
            
            Show
            teilo James Nord added a comment - running with Jenkins 2.46.2 on windows 10 (no agents configured) the petclinic example worked fine for me with 2.2.0 of the plugin (with the exception that corbetura seemed to complain during its invocation) ... [INFO] Cobertura: Loaded information on 24 classes. [ERROR] Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="C:\workarea\wars\JENKINS-44088\workspace\petclinic@tmp\withMaven80a90cd0\pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="C:\workarea\wars\JENKINS-44088\workspace\petclinic@tmp\withMaven80a90cd0" [INFO] All checks passed. ...
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Frederick Staats problem understood your Jenkins says that your workspace is "C:/Jenkins/workspace/maven-pipeline-plugin-test" with slash separator ("/") instead of backslash ("\") even though the build agent is Windows.
            Do you understand why you could have this? Something special related to your RFE JENKINS-44089 ?

            Show
            cleclerc Cyrille Le Clerc added a comment - Frederick Staats problem understood your Jenkins says that your workspace is "C:/Jenkins/workspace/maven-pipeline-plugin-test" with slash separator ("/") instead of backslash ("\") even though the build agent is Windows. Do you understand why you could have this? Something special related to your RFE JENKINS-44089 ?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Cyrille Le Clerc
            Path:
            jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java
            jenkins-plugin/src/test/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtilsTest.java
            http://jenkins-ci.org/commit/pipeline-maven-plugin/fd767e630c64f7f80538764a42960aa9c20dc479
            Log:
            JENKINS-44088 Support edge case where the workspace filePath on Windows uses “/“ instead of “\”

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java jenkins-plugin/src/test/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtilsTest.java http://jenkins-ci.org/commit/pipeline-maven-plugin/fd767e630c64f7f80538764a42960aa9c20dc479 Log: JENKINS-44088 Support edge case where the workspace filePath on Windows uses “/“ instead of “\”
            Show
            cleclerc Cyrille Le Clerc added a comment - Fix: https://github.com/jenkinsci/pipeline-maven-plugin/commit/fd767e630c64f7f80538764a42960aa9c20dc479 and https://github.com/jenkinsci/pipeline-maven-plugin/commit/33a8425c88d8d2f18c03d4d62a8b957064370975 Build https://jenkins.ci.cloudbees.com/job/plugins/job/pipeline-maven-plugin/176/
            cleclerc Cyrille Le Clerc made changes -
            Show
            cleclerc Cyrille Le Clerc added a comment - Frederick Staats can you please test pipeline-maven-2017-05-12-00-23.hpi . This commit should fix your special case https://github.com/jenkinsci/pipeline-maven-plugin/commit/fd767e630c64f7f80538764a42960aa9c20dc479
            Hide
            flstaats Frederick Staats added a comment -

            I had already downloaded the latest master branch (f1a4d3c Cyrille Le Clerc <cleclerc@cloudbees.com> on 5/11/2017 at 12:59 PM just before you sent your update above) to do a local build to see if I could dig deeper myself.  I spent a couple of hours trying to get the unit tests working inside our corporate firewall (without success), but was able to build the plugin it without running the unit tests.

            My locally built pipeline-maven.hpi based on your latest code update does indeed seem to resolve the issue on both your test case and on the internal build that brought this issue to our attention.  I also tested builds without problem on our Linux build agents.

            Show
            flstaats Frederick Staats added a comment - I had already downloaded the latest master branch (f1a4d3c Cyrille Le Clerc <cleclerc@cloudbees.com> on 5/11/2017 at 12:59 PM just before you sent your update above) to do a local build to see if I could dig deeper myself.  I spent a couple of hours trying to get the unit tests working inside our corporate firewall (without success), but was able to build the plugin it without running the unit tests. My locally built pipeline-maven.hpi based on your latest code update does indeed seem to resolve the issue on both your test case and on the internal build that brought this issue to our attention.  I also tested builds without problem on our Linux build agents.
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Fixed in 2.2.1

            Show
            cleclerc Cyrille Le Clerc added a comment - Fixed in 2.2.1
            cleclerc Cyrille Le Clerc made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            flstaats Frederick Staats added a comment -

            Validated that 2.2.1 through the normal update channel is working.

            Show
            flstaats Frederick Staats added a comment - Validated that 2.2.1 through the normal update channel is working.
            flstaats Frederick Staats made changes -
            Attachment log.txt [ 37728 ]
            flstaats Frederick Staats made changes -
            Attachment log.txt [ 37727 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Cyrille Le Clerc
            Path:
            jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java
            jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java
            http://jenkins-ci.org/commit/pipeline-maven-plugin/1ee0a61fb6086a9a5e9ce2e26297c0eda5b41430
            Log:
            JENKINS-44088 better troubleshooting messages

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java http://jenkins-ci.org/commit/pipeline-maven-plugin/1ee0a61fb6086a9a5e9ce2e26297c0eda5b41430 Log: JENKINS-44088 better troubleshooting messages
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Cyrille Le Clerc
            Path:
            jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java
            jenkins-plugin/src/test/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtilsTest.java
            http://jenkins-ci.org/commit/pipeline-maven-plugin/ec2196124d464d3abac3b4d22128ae1aec4338fc
            Log:
            JENKINS-44088 Support edge case where the workspace filePath on Windows uses “/“ instead of “\”

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtils.java jenkins-plugin/src/test/java/org/jenkinsci/plugins/pipeline/maven/util/XmlUtilsTest.java http://jenkins-ci.org/commit/pipeline-maven-plugin/ec2196124d464d3abac3b4d22128ae1aec4338fc Log: JENKINS-44088 Support edge case where the workspace filePath on Windows uses “/“ instead of “\”

              People

              • Assignee:
                cleclerc Cyrille Le Clerc
                Reporter:
                flstaats Frederick Staats
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: