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

adding a simple writeFile inside withMaven causes pipeline to hang

      the following pipeline hung indefinable and could not be aborted correctly on windows (needed a hard kill)

      windows master (no executors), one windows agents launched using a command on the master (java -jar ..../slave.jar)

      node {
        withMaven(maven: 'default') {
          git changelog: false, poll: false, url: 'https://github.com/jtnord/maven-test-project.git'
      
          bat "mvn package"
          writeFile file: '.archive-jenkins-maven-event-spy-logs', text: ''
        }
      }
      
      
      

       

      thread dump from pipeline is

      Thread #4
      	at WorkflowScript.run(WorkflowScript:7)
      	at DSL.withMaven(Native Method)
      	at WorkflowScript.run(WorkflowScript:2)
      	at DSL.node(running on agent)
      	at WorkflowScript.run(WorkflowScript:1)

          [JENKINS-43654] adding a simple writeFile inside withMaven causes pipeline to hang

          James Nord created issue -
          James Nord made changes -
          Description Original: the following pipeline hung indefinable and could not be aborted correctly on windows (needed a hard kill)

          windows master (no executors), one windows agents launched using a command on the master (java -jar ..../slave.jar)
          {code:java}
          node {
            withMaven(maven: 'default') {
              git changelog: false, poll: false, url: 'https://github.com/jtnord/maven-test-project.git'

              bat "mvn package"
              writeFile file: '.archive-jenkins-maven-event-spy-logs', text: ''
            }
          }
          {code}
          New: the following pipeline hung indefinable and could not be aborted correctly on windows (needed a hard kill)

          windows master (no executors), one windows agents launched using a command on the master (java -jar ..../slave.jar)
          {code:java}
          node {
            withMaven(maven: 'default') {
              git changelog: false, poll: false, url: 'https://github.com/jtnord/maven-test-project.git'

              bat "mvn package"
              writeFile file: '.archive-jenkins-maven-event-spy-logs', text: ''
            }
          }


          {code}
           

          thread dump from pipeline is
          {noformat}
          Thread #4
          at WorkflowScript.run(WorkflowScript:7)
          at DSL.withMaven(Native Method)
          at WorkflowScript.run(WorkflowScript:2)
          at DSL.node(running on agent)
          at WorkflowScript.run(WorkflowScript:1){noformat}
          Nuno Costa made changes -
          Attachment New: 20170606-JENKINS-43654-console.txt [ 38247 ]
          Nuno Costa made changes -
          Alvaro Lobato made changes -
          Assignee Original: Alvaro Lobato [ alobato ]
          Alvaro Lobato made changes -
          Summary Original: adding a simple writeFile inside withMaven causes pipeline to hand New: adding a simple writeFile inside withMaven causes pipeline to hang
          Benoit made changes -
          Assignee New: Benoit [ bguerin ]

            bguerin Benoit
            teilo James Nord
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: