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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Jenkins 1.651.1, up-to-date pipeline and workflow plugins (list attached), IBM JRE 1.7.0, Linux

      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.

          [JENKINS-34637] pipeline DSL: timeout() does not work if withEnv() is enclosed

          Tony Wallace created issue -
          Tony Wallace made changes -
          Description New: 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.
          Tony Wallace made changes -
          Attachment New: jenkins.txt [ 32627 ]
          Attachment New: linux.txt [ 32628 ]
          Michael Barrientos made changes -
          Link New: This issue is duplicated by JENKINS-36010 [ JENKINS-36010 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170807 ] New: JNJira + In-Review [ 184051 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-durable-task-step-plugin [ 21715 ]
          Component/s Original: pipeline [ 21692 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-34677 [ JENKINS-34677 ]
          Christopher Orr made changes -
          Remote Link New: This issue links to "PR #22 (test case) (Web Link)" [ 14875 ]
          Jesse Glick made changes -
          Component/s New: workflow-basic-steps-plugin [ 21712 ]
          Component/s Original: workflow-durable-task-step-plugin [ 21715 ]

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

              Created:
              Updated:
              Resolved: