Details

    • Similar Issues:

      Description

      When batch task is included in a Pipeline job it will hang on completion of the batch task. I can see in task manager that the job startup it logs data to jenkins-log.txt. The batch completes and I see in task manager that the batch is nolonger running. But Jenkins is still waiting for the task to complete. I do not see jenkins-result.txt writen to the workspace tmp durabletask directory. If I create the file manually or run the workflow-wrap.bat manually the task completes. This is an itermitent bug. Task might work 3 time then fail 5 times then work 8 times. No change to the system during this time. I am setting the job to run every min to see what the stats look like for longer run.

      job:

      node { 
       bat 'ping 127.0.0.1 -n 10'
       echo 'batch completed'
      }
      

      Could be any command you want ping is just an easy one to have it take a little bit of time. And require nothing else installed on machine.

      I see many other task like this I have tested on serveral differnt machines using a base install of Jenkins.

        Attachments

        1. durable-task.hpi
          41 kB
        2. durable-task.hpi
          41 kB
        3. How.png
          How.png
          321 kB
        4. jenkins2-pipeline-batch-hang.png
          jenkins2-pipeline-batch-hang.png
          109 kB
        5. jenkins2-pipeline-batch-nohang.png
          jenkins2-pipeline-batch-nohang.png
          98 kB

          Issue Links

            Activity

            dpd_30 Daniel Daugherty created issue -
            dpd_30 Daniel Daugherty made changes -
            Field Original Value New Value
            Epic Link JENKINS-31152 [ 165808 ]
            rtyler R. Tyler Croy made changes -
            Description When batch task is included in a Pipeline job it will hang on completion of the batch task. I can see in task manager that the job startup it logs data to jenkins-log.txt. The batch completes and I see in task manager that the batch is nolonger running. But Jenkins is still waiting for the task to complete. I do not see jenkins-result.txt writen to the workspace tmp durabletask directory. If I create the file manually or run the workflow-wrap.bat manually the task completes. This is an itermitent bug. Task might work 3 time then fail 5 times then work 8 times. No change to the system during this time. I am setting the job to run every min to see what the stats look like for longer run.

            job:
            node {
             bat 'ping 127.0.0.1 -n 10'
             echo 'batch completed'
            }

            Could be any command you want ping is just an easy one to have it take a little bit of time. And require nothing else installed on machine.

            I see many other task like this I have tested on serveral differnt machines using a base install of Jenkins.
            When batch task is included in a Pipeline job it will hang on completion of the batch task. I can see in task manager that the job startup it logs data to jenkins-log.txt. The batch completes and I see in task manager that the batch is nolonger running. But Jenkins is still waiting for the task to complete. I do not see jenkins-result.txt writen to the workspace tmp durabletask directory. If I create the file manually or run the workflow-wrap.bat manually the task completes. This is an itermitent bug. Task might work 3 time then fail 5 times then work 8 times. No change to the system during this time. I am setting the job to run every min to see what the stats look like for longer run.

            job:
            {code}
            node {
             bat 'ping 127.0.0.1 -n 10'
             echo 'batch completed'
            }
            {code}

            Could be any command you want ping is just an easy one to have it take a little bit of time. And require nothing else installed on machine.

            I see many other task like this I have tested on serveral differnt machines using a base install of Jenkins.
            rtyler R. Tyler Croy made changes -
            Labels workflow 2.0 workflow
            rtyler R. Tyler Croy made changes -
            Attachment jenkins2-pipeline-batch-nohang.png [ 32426 ]
            rtyler R. Tyler Croy made changes -
            Labels 2.0 workflow 2.0 testfest workflow
            rtyler R. Tyler Croy made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Assignee Jesse Glick [ jglick ] R. Tyler Croy [ rtyler ]
            Resolution Cannot Reproduce [ 5 ]
            rtyler R. Tyler Croy made changes -
            Resolution Cannot Reproduce [ 5 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            rtyler R. Tyler Croy made changes -
            Attachment jenkins2-pipeline-batch-hang.png [ 32433 ]
            rtyler R. Tyler Croy made changes -
            Assignee R. Tyler Croy [ rtyler ] Antonio Muñiz [ amuniz ]
            amuniz Antonio Muñiz made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            danielbeck Daniel Beck made changes -
            Labels 2.0 testfest workflow 2.0 2.0-planned testfest workflow
            amuniz Antonio Muñiz made changes -
            Link This issue is related to JENKINS-33164 [ JENKINS-33164 ]
            amuniz Antonio Muñiz made changes -
            Link This issue is related to JENKINS-33749 [ JENKINS-33749 ]
            flyingosprey KK G made changes -
            Environment Jenkins 2.0RC1
            Windows 2008r2, Windows 2012r2, Windows 7
            Jenkins 2.0RC1, Jenkins LTS
            Windows 2008r2, Windows 2012r2, Windows 7
            flyingosprey KK G made changes -
            Environment Jenkins 2.0RC1, Jenkins LTS
            Windows 2008r2, Windows 2012r2, Windows 7
            Jenkins 2.0RC1, Jenkins LTS
            Windows 2008r2, Windows 2012r2, Windows 7, Window 10
            flyingosprey KK G made changes -
            Environment Jenkins 2.0RC1, Jenkins LTS
            Windows 2008r2, Windows 2012r2, Windows 7, Window 10
            Jenkins 2.0RC1, Jenkins LTS
            Windows 2008r2, Windows 2012r2, Windows 7, Windows 10
            flyingosprey KK G made changes -
            Environment Jenkins 2.0RC1, Jenkins LTS
            Windows 2008r2, Windows 2012r2, Windows 7, Windows 10
            Jenkins 2.0RC1, Jenkins 1.6* LTS
            Windows 2008r2, Windows 2012r2, Windows 7, Windows 10
            jglick Jesse Glick made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 21 (Web Link)" [ 14227 ]
            jglick Jesse Glick made changes -
            Labels 2.0 2.0-planned testfest workflow 2.0 2.0-planned testfest windows workflow
            amuniz Antonio Muñiz made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            vdragon Camille Baud made changes -
            Comment [ Sucessfulyl reproduced with:
            {code:java}
            node("master") {
              for( int i = 0; i < 100; ++i ) {
                echo "i=${i}"
                bat "ping JENKINSSRVMGR"
              }
            }
            {code}
            ran multiple times; ]
            vyazelenko Dmitry Vyazelenko made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]
            saucistophe Christophe Carpentier made changes -
            Attachment How.png [ 32760 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170200 ] JNJira + In-Review [ 198805 ]
            abayer Andrew Bayer made changes -
            Labels 2.0 2.0-planned testfest windows workflow 2.0 2.0-planned pipeline testfest windows workflow
            abayer Andrew Bayer made changes -
            Labels 2.0 2.0-planned pipeline testfest windows workflow 2.0 2.0-planned pipeline testfest windows
            hrmpw Patrick Wolf made changes -
            Link This issue is related to JENKINS-33904 [ JENKINS-33904 ]
            hrmpw Patrick Wolf made changes -
            Link This issue is related to JENKINS-33456 [ JENKINS-33456 ]
            hrmpw Patrick Wolf made changes -
            Link This issue is related to JENKINS-32000 [ JENKINS-32000 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 25 (Web Link)" [ 15197 ]
            lidl Sven Brosi made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            svanoort Sam Van Oort made changes -
            Attachment durable-task.hpi [ 41773 ]
            svanoort Sam Van Oort made changes -
            Attachment durable-task.hpi [ 41776 ]
            svanoort Sam Van Oort made changes -
            Link This issue is related to JENKINS-50025 [ JENKINS-50025 ]
            svanoort Sam Van Oort made changes -
            Link This issue duplicates JENKINS-50025 [ JENKINS-50025 ]
            svanoort Sam Van Oort made changes -
            Status Reopened [ 4 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                amuniz Antonio Muñiz
                Reporter:
                dpd_30 Daniel Daugherty
              • Votes:
                18 Vote for this issue
                Watchers:
                34 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: