Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5425

Hudson Shelve Project Plugin restarts Hudson without warning when unshelving a shelved job.

    Details

    • Similar Issues:

      Description

      The Unshelve task causes a sudden Hudson Restart without warning, which causes currently executing jobs to be aborted.

      Instead of: Hudson.getInstance().restart(); // At least if nothing else safeRestart()

      Use this: Hudson.getInstace().reload(); // Safe, does not abort current jobs, and works perfectly for this.

      I have used the reload() when modifying the configuration on disc including all of the scm urls in all of the jobs, and it works perfectly.

      The line in question is 52 in UnshelveProjectExecutable.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/hudson/plugins/shelve-project-plugin/pom.xml
          trunk/hudson/plugins/shelve-project-plugin/src/main/java/org/jvnet/hudson/plugins/shelveproject/ShelveProjectTask.java
          trunk/hudson/plugins/shelve-project-plugin/src/main/java/org/jvnet/hudson/plugins/shelveproject/UnshelveProjectExecutable.java
          trunk/hudson/plugins/shelve-project-plugin/src/main/java/org/jvnet/hudson/plugins/shelveproject/UnshelveProjectTask.java
          http://jenkins-ci.org/commit/27925
          Log:
          [FIXED JENKINS-5425] When unshelving a project, reload Hudson instead of restarting. Requiring Hudson version is now 1.366 or newer for Hudson.reload().

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/hudson/plugins/shelve-project-plugin/pom.xml trunk/hudson/plugins/shelve-project-plugin/src/main/java/org/jvnet/hudson/plugins/shelveproject/ShelveProjectTask.java trunk/hudson/plugins/shelve-project-plugin/src/main/java/org/jvnet/hudson/plugins/shelveproject/UnshelveProjectExecutable.java trunk/hudson/plugins/shelve-project-plugin/src/main/java/org/jvnet/hudson/plugins/shelveproject/UnshelveProjectTask.java http://jenkins-ci.org/commit/27925 Log: [FIXED JENKINS-5425] When unshelving a project, reload Hudson instead of restarting. Requiring Hudson version is now 1.366 or newer for Hudson.reload().
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/hudson/plugins/shelve-project-plugin/src/main/resources/org/jvnet/hudson/plugins/shelveproject/ShelvedProjectsAction/index.jelly
          http://jenkins-ci.org/commit/28018
          Log:
          JENKINS-5425 Note about unshelving will reload Hudon's configuration.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/hudson/plugins/shelve-project-plugin/src/main/resources/org/jvnet/hudson/plugins/shelveproject/ShelvedProjectsAction/index.jelly http://jenkins-ci.org/commit/28018 Log: JENKINS-5425 Note about unshelving will reload Hudon's configuration.

            People

            • Assignee:
              ashlux ashlux
              Reporter:
              ken_graham ken_graham
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: