-
Bug
-
Resolution: Fixed
-
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.
- is duplicated by
-
JENKINS-34677 Pipeline/Timeout/Xvnc: "timeout" with a ""wrap" inside don't time out.
-
- Resolved
-
-
JENKINS-36010 Pipeline/Timeout: "timeout" with a "withEnv" insite don't time out
-
- Resolved
-
-
JENKINS-32545 failFast has no effect when withCredentials is used
-
- Resolved
-
- relates to
-
JENKINS-26148 Incorrect implementation of RetryStepExecution.stop
-
- Closed
-
-
JENKINS-39072 timeout step should include more logging/diagnostics information
-
- Resolved
-
- links to
[JENKINS-34637] pipeline DSL: timeout() does not work if withEnv() is enclosed
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. |
Attachment | New: jenkins.txt [ 32627 ] | |
Attachment | New: linux.txt [ 32628 ] |
Link |
New:
This issue is duplicated by |
Workflow | Original: JNJira [ 170807 ] | New: JNJira + In-Review [ 184051 ] |
Component/s | New: pipeline-general [ 21692 ] |
Component/s | Original: workflow-plugin [ 18820 ] |
This pipeline DSL works as expected: ie, the "sleep" is interrupted at 20 seconds, the timeout exception is caught, the build ends Timeout has been exceeded.
This DSL script does not work as expected: the sleep runs all the way to 60 seconds. THEN the build ends the same way, Timeout has been exceeded, except timeout did not actually interrupt anything.