-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins ver. 2.121.2 with up-to-date plugins
The attached Jenkinsfile can be used to reproduce this issue.
Running the Pipeline the first time, everything works as expected:
run a)
------
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] stage
[Pipeline] { (one)
[Pipeline] script
[Pipeline]
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (two)
[Pipeline] script
[Pipeline]
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
If it is restarted from stage 'two', the value of the global Map member is null. I would expect to have the value from the last run there:
run b) - restart from stage two
-------------------------------
[Pipeline] timestamps
[Pipeline] {
[Pipeline] stage
[Pipeline]
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (two)
[Pipeline] script
[Pipeline]
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
- relates to
-
JENKINS-53193 Provide currentBuild.isRestartedRun and .isRestartedStage global variables
-
- Open
-
[JENKINS-52774] Restart from Stage doesn't restore global variable
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Component/s | New: blueocean-plugin [ 21481 ] |
Component/s | New: pipeline-model-definition-plugin [ 21706 ] | |
Component/s | Original: blueocean-plugin [ 21481 ] | |
Component/s | Original: pipeline-stage-step-plugin [ 21709 ] |
Assignee | New: Andrew Bayer [ abayer ] |
Assignee | Original: Andrew Bayer [ abayer ] |
Link | New: This issue relates to JENKINS-53193 [ JENKINS-53193 ] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |