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

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

              Created:
              Updated: