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

pipeline DSL: timeout() does not work if withEnv() is enclosed

    Details

    • Similar Issues:

      Description

      Pipeline/ workflow DSL: timeout() does not work as expected when a withEnv() is introduced inside the (same) timeout + node blocks and over the (same) shell command.
      Specifically, without the withEnv block, the timeout actually interrupts the shell command.
      With the withEnv block, the timeout does not interrupt the shell command; yet, the build still ends reporting that it was interrupted/ aborted.

        Attachments

          Issue Links

            Activity

            hushp1pt Tony Wallace created issue -
            hushp1pt Tony Wallace made changes -
            Field Original Value New Value
            Description Pipeline/ workflow DSL: timeout() does not work as expected when a withEnv() is introduced inside the (same) timeout + node blocks and over the (same) shell command.
            Specifically, without the withEnv block, the timeout actually interrupts the shell command.
            With the withEnv block, the timeout does not interrupt the shell command; yet, the build still ends reporting that it was interrupted/ aborted.
            hushp1pt Tony Wallace made changes -
            Attachment jenkins.txt [ 32627 ]
            Attachment linux.txt [ 32628 ]
            mbarrien Michael Barrientos made changes -
            Link This issue is duplicated by JENKINS-36010 [ JENKINS-36010 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170807 ] JNJira + In-Review [ 184051 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-durable-task-step-plugin [ 21715 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-34677 [ JENKINS-34677 ]
            orrc Christopher Orr made changes -
            Remote Link This issue links to "PR #22 (test case) (Web Link)" [ 14875 ]
            jglick Jesse Glick made changes -
            Component/s workflow-basic-steps-plugin [ 21712 ]
            Component/s workflow-durable-task-step-plugin [ 21715 ]
            amuniz Antonio Muñiz made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-26148 [ JENKINS-26148 ]
            jglick Jesse Glick made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            Priority Major [ 3 ] Critical [ 2 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-39072 [ JENKINS-39072 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-cps PR 76 (Web Link)" [ 14959 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-basic-steps PR 24 (Web Link)" [ 14960 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-32545 [ JENKINS-32545 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                hushp1pt Tony Wallace
              • Votes:
                9 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: