When Jenkins is stopped, the queue file is created except it's empty. No information about the running jobs or jobs pending in the queue exist.

      It essentially saves a file like:
      <?xml version='1.0' encoding='UTF-8'?>
      <hudson.model.Queue_-State>
      <counter>42</counter>
      <items/>
      </hudson.model.Queue_-State>

      This behavior is a regression from Jenkins 2.0 beta2.

          [JENKINS-34281] Queue isn't saved on any shutdown

          Sam Van Oort added a comment -

          jglick So... one fix solved multiple bugs? Best thing to hear!

          Sam Van Oort added a comment - jglick So... one fix solved multiple bugs? Best thing to hear!

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/d20d2b3f493d8bdda36e77e07c91d586e5789d7d
          Log:
          JENKINS-34281 It is possible for terminators to be called under anonymous access prior to 2.1, leading to lost FlowExecutionList entries.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java http://jenkins-ci.org/commit/workflow-cps-plugin/d20d2b3f493d8bdda36e77e07c91d586e5789d7d Log: JENKINS-34281 It is possible for terminators to be called under anonymous access prior to 2.1, leading to lost FlowExecutionList entries.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/22d28c28e53448b08f750a9f7aa27bdee07dfc77
          Log:
          Merge pull request #19 from jglick/suspendAll-JENKINS-34281

          JENKINS-34281 Lost FlowExecutionList entries

          Compare: https://github.com/jenkinsci/workflow-cps-plugin/compare/865c21b72203...22d28c28e534

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java http://jenkins-ci.org/commit/workflow-cps-plugin/22d28c28e53448b08f750a9f7aa27bdee07dfc77 Log: Merge pull request #19 from jglick/suspendAll- JENKINS-34281 JENKINS-34281 Lost FlowExecutionList entries Compare: https://github.com/jenkinsci/workflow-cps-plugin/compare/865c21b72203...22d28c28e534

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/steps/SleepStep.java
          http://jenkins-ci.org/commit/workflow-basic-steps-plugin/3da248c55c3bb81ae94f31038298d9a2beba368b
          Log:
          JENKINS-34281 Indicate if we are still sleeping after a resume.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/steps/SleepStep.java http://jenkins-ci.org/commit/workflow-basic-steps-plugin/3da248c55c3bb81ae94f31038298d9a2beba368b Log: JENKINS-34281 Indicate if we are still sleeping after a resume.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java
          http://jenkins-ci.org/commit/workflow-api-plugin/85c413b5fde6686d988c1bd2f1f763b583825fc3
          Log:
          JENKINS-34281 More logging about what happens when loading FlowExecutionList.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java http://jenkins-ci.org/commit/workflow-api-plugin/85c413b5fde6686d988c1bd2f1f763b583825fc3 Log: JENKINS-34281 More logging about what happens when loading FlowExecutionList.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/steps/SleepStep.java
          http://jenkins-ci.org/commit/workflow-basic-steps-plugin/f79ae94a60cfcd62d9248e893c4a36573b7d1c61
          Log:
          Merge pull request #8 from jglick/sleep-info-JENKINS-34281

          JENKINS-34281 Indicate if we are still sleeping after a resume

          Compare: https://github.com/jenkinsci/workflow-basic-steps-plugin/compare/7360c8d48bdb...f79ae94a60cf

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/steps/SleepStep.java http://jenkins-ci.org/commit/workflow-basic-steps-plugin/f79ae94a60cfcd62d9248e893c4a36573b7d1c61 Log: Merge pull request #8 from jglick/sleep-info- JENKINS-34281 JENKINS-34281 Indicate if we are still sleeping after a resume Compare: https://github.com/jenkinsci/workflow-basic-steps-plugin/compare/7360c8d48bdb...f79ae94a60cf

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java
          http://jenkins-ci.org/commit/workflow-api-plugin/f749920b37b7fcd3ecc1d5e85433c50a0a910cd4
          Log:
          Merge pull request #4 from jglick/FlowExecutionList-JENKINS-34281

          JENKINS-34281 More logging about what happens when loading FlowExecutionList

          Compare: https://github.com/jenkinsci/workflow-api-plugin/compare/ac98823111be...f749920b37b7

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java http://jenkins-ci.org/commit/workflow-api-plugin/f749920b37b7fcd3ecc1d5e85433c50a0a910cd4 Log: Merge pull request #4 from jglick/FlowExecutionList- JENKINS-34281 JENKINS-34281 More logging about what happens when loading FlowExecutionList Compare: https://github.com/jenkinsci/workflow-api-plugin/compare/ac98823111be...f749920b37b7

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
          http://jenkins-ci.org/commit/workflow-job-plugin/5c8499e19aae9a47207cde1072b1775230edf15b
          Log:
          JENKINS-34281 More general fix of CpsFlowExecution.suspendAll ACL bug which could help with InputAction.loadExecutions as well.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java http://jenkins-ci.org/commit/workflow-job-plugin/5c8499e19aae9a47207cde1072b1775230edf15b Log: JENKINS-34281 More general fix of CpsFlowExecution.suspendAll ACL bug which could help with InputAction.loadExecutions as well.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
          http://jenkins-ci.org/commit/workflow-job-plugin/baf8f40be50d83ef1574f7470c399b2952bcb95b
          Log:
          Merge pull request #11 from jglick/Owner-ACL-JENKINS-34281

          JENKINS-34281 More general fix of CpsFlowExecution.suspendAll ACL bug

          Compare: https://github.com/jenkinsci/workflow-job-plugin/compare/e94fd55ee4f5...baf8f40be50d

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java http://jenkins-ci.org/commit/workflow-job-plugin/baf8f40be50d83ef1574f7470c399b2952bcb95b Log: Merge pull request #11 from jglick/Owner-ACL- JENKINS-34281 JENKINS-34281 More general fix of CpsFlowExecution.suspendAll ACL bug Compare: https://github.com/jenkinsci/workflow-job-plugin/compare/e94fd55ee4f5...baf8f40be50d

          Code changed in jenkins
          User: Jesse Glick
          Path:
          job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
          http://jenkins-ci.org/commit/pipeline-plugin/20ad6a2e677764ec3e38d81c3e058f0070591a8c
          Log:
          JENKINS-34281 More general fix of CpsFlowExecution.suspendAll ACL bug
          Backports https://github.com/jenkinsci/workflow-job-plugin/pull/11.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java http://jenkins-ci.org/commit/pipeline-plugin/20ad6a2e677764ec3e38d81c3e058f0070591a8c Log: JENKINS-34281 More general fix of CpsFlowExecution.suspendAll ACL bug Backports https://github.com/jenkinsci/workflow-job-plugin/pull/11 .

            svanoort Sam Van Oort
            kwhetstone Kristin Whetstone
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: