-
Improvement
-
Resolution: Unresolved
-
Minor
-
-
Declarative backlog
On a restarted stage, there is a when condition, isRestartedRun() that can be used to run or not a stage. But there isn't anything that can be used to execute a bit different on a restart than in the original run. This leads to workarounds like:
stages {
stage('Schedule') {
when
}
agent any
steps
}
stage('Restart') {
when
agent any
steps
}
It would be much simpler and clearer to be able to just check for currentBuild.isRestartedRun wherever global variables are accessible
- depends on
-
JENKINS-41272 Pipeline "currentBuild" should expose build causes
-
- Resolved
-
- is related to
-
JENKINS-53662 isRestartedRun() is not reset after a successful stage
-
- In Review
-
- relates to
-
JENKINS-52774 Restart from Stage doesn't restore global variable
-
- Resolved
-
[JENKINS-53193] Provide currentBuild.isRestartedRun and .isRestartedStage global variables
Component/s | New: pipeline-model-definition-plugin [ 21706 ] | |
Component/s | Original: core [ 15593 ] |
Assignee | New: Andrew Bayer [ abayer ] |
Link | New: This issue is related to JENKINS-53662 [ JENKINS-53662 ] |
Summary | Original: Provide currentBuild.isRestartedRun global variable | New: Provide currentBuild.isRestartedRun and .isRestartedStage global variables |
Labels | New: stage-restart-improvements |
Sprint | New: Declarative backlog [ 621 ] |
Assignee | Original: Andrew Bayer [ abayer ] |
Link |
New:
This issue relates to |
Link |
New:
This issue depends on |