-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
-
Pipeline - December
Problem
In Declarative it is not possible to wrap a timeout out side of a stage and not have it utilise the agent.
stage('Continue deploy') { agent none steps { timeout(time: 1, unit: 'DAYS') { input 'Continue deploy?' } } } stage('deploy') { agent { label 'deployer' } steps { echo 'deploy' } }
Solution
It would be great if we could have something like the following (assuming JENKINS-48379)
stage('deploy') { timeout { time: 1 unit: DAYS } input { input 'Continue deploy?' } steps { echo 'deploy' } }
- is duplicated by
-
JENKINS-43336 Allow locking multiple stages in declarative pipeline
-
- Closed
-
- relates to
-
JENKINS-48379 Input/parameters for Stages
-
- Closed
-
- links to
[JENKINS-48380] Block-scoped "wrapper" options for individual stages
Epic Link | New: JENKINS-48356 [ 186951 ] |
Description |
Original:
*Problem* In Declarative it is not possible to wrap a timeout out side of a stage and not have it utilise the agent. {code} stage('cancel deploy') { agent none steps { timeout(time: 1, unit: 'DAYS') { input 'Cancel deploy?' } } } stage('deploy') { agent { label 'deployer' } steps { echo 'deploy' } } {code} *Solution* It would be great if we could have something like the following (assuming {code} stage('deploy') { timeout { time: 1 unit: DAYS } input { input 'Cancel deploy?' } steps { echo 'deploy' } } {code} |
New:
*Problem* In Declarative it is not possible to wrap a timeout out side of a stage and not have it utilise the agent. {code} stage('Continue deploy') { agent none steps { timeout(time: 1, unit: 'DAYS') { input 'Continue deploy?' } } } stage('deploy') { agent { label 'deployer' } steps { echo 'deploy' } } {code} *Solution* It would be great if we could have something like the following (assuming {code} stage('deploy') { timeout { time: 1 unit: DAYS } input { input 'Continue deploy?' } steps { echo 'deploy' } } {code} |
Link |
New:
This issue relates to |
Remote Link | New: This issue links to "CloudBees Internal CD-366 (Web Link)" [ 18943 ] |
Summary | Original: Timeout for stage | New: Block-scoped "wrapper" options for individual stages |
Link |
New:
This issue is duplicated by |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Sprint | Original: Pipeline - Candidates [ 381 ] | New: Pipeline - December [ 446 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR #230 (Web Link)" [ 19425 ] |