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

JENKINS_HOME deleted by Jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      CentOS 5.5
      JRE 1.6.0
      Jenkins 1.413
    • Similar Issues:

      Description

      If a project is configured with a "blank" custom workspace in it's Advanced Project Options, then when the workspace is cleaned, $JENKINS_HOME is deleted.

      More specifically, if the "Use custom workspace" option is ticked, but the "Directory" field is not filled in, then the workspace directory is effectively $JENKINS_HOME.

      Presumably this is because (as the docs mention) the custom workspace is relative to $JENKINS_HOME.

      This is a serious issue, because a workspace clean removes all Jenkins workspaces, all Jenkins job configuration etc. without warning.

      Please protect silly people like me from myself!!!!!

        Attachments

          Activity

          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #848
          Possible fix for JENKINS-9806, fix empty customWorkspace -if empry, replace it by null (i.e. no custom workspace)
          [FIXED JENKINS-9806] the actual fix are in the two previous commits.

          Kohsuke Kawaguchi : 8b4f30a162e8169a0537ae25d406aa86c7609dd0
          Files :

          • core/src/main/java/hudson/model/AbstractProject.java

          Kohsuke Kawaguchi : a1ed1b2278592d61619986a615d56dac3bdc5b76
          Files :

          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #848 Possible fix for JENKINS-9806 , fix empty customWorkspace -if empry, replace it by null (i.e. no custom workspace) [FIXED JENKINS-9806] the actual fix are in the two previous commits. Kohsuke Kawaguchi : 8b4f30a162e8169a0537ae25d406aa86c7609dd0 Files : core/src/main/java/hudson/model/AbstractProject.java Kohsuke Kawaguchi : a1ed1b2278592d61619986a615d56dac3bdc5b76 Files : changelog.html
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vojtech Juranek
          Path:
          core/src/main/java/hudson/model/AbstractProject.java
          http://jenkins-ci.org/commit/jenkins/8b4f30a162e8169a0537ae25d406aa86c7609dd0
          Log:
          Possible fix for JENKINS-9806, fix empty customWorkspace -if empry, replace it by null (i.e. no custom workspace)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/8b4f30a162e8169a0537ae25d406aa86c7609dd0 Log: Possible fix for JENKINS-9806 , fix empty customWorkspace -if empry, replace it by null (i.e. no custom workspace)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/a1ed1b2278592d61619986a615d56dac3bdc5b76
          Log:
          [FIXED JENKINS-9806] the actual fix are in the two previous commits.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html http://jenkins-ci.org/commit/jenkins/a1ed1b2278592d61619986a615d56dac3bdc5b76 Log: [FIXED JENKINS-9806] the actual fix are in the two previous commits.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vojtech Juranek
          Path:
          core/src/main/java/hudson/model/AbstractProject.java
          http://jenkins-ci.org/commit/jenkins/8b4f30a162e8169a0537ae25d406aa86c7609dd0
          Log:
          Possible fix for JENKINS-9806, fix empty customWorkspace -if empry, replace it by null (i.e. no custom workspace)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/8b4f30a162e8169a0537ae25d406aa86c7609dd0 Log: Possible fix for JENKINS-9806 , fix empty customWorkspace -if empry, replace it by null (i.e. no custom workspace)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/a1ed1b2278592d61619986a615d56dac3bdc5b76
          Log:
          [FIXED JENKINS-9806] the actual fix are in the two previous commits.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html http://jenkins-ci.org/commit/jenkins/a1ed1b2278592d61619986a615d56dac3bdc5b76 Log: [FIXED JENKINS-9806] the actual fix are in the two previous commits.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            typerlc typerlc
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: