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

JENKINS_HOME deleted when Custom Workspace is ..

    Details

    • Similar Issues:

      Description

      Thanks to JENKINS-17818 when a relative path is specified for Custom Workspace the resulting workspace path is relative to JENKINS_HOME instead of the default workspace location ${ITEM_FULL_NAME}/workspace as I had expected.

      The consequence of specifying a relative path of .. for Custom Workspace is that the workspace is set to ${JENKINS_HOME}/.. which Jenkins attempted to wipe out when commencing the Job.

      End result is apparently much the same as seen in JENKINS-9806, dozens of jobs configurations, workspaces, build logs, jenkins credentials, ssh keys and so on all recursively deleted.

       

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Can this problem occur when not building on master as recommended (e.g. here: https://wiki.jenkins.io/display/JENKINS/Security+implication+of+building+on+master ), which is inherently unsafe?

          Show
          danielbeck Daniel Beck added a comment - Can this problem occur when not building on master as recommended (e.g. here: https://wiki.jenkins.io/display/JENKINS/Security+implication+of+building+on+master ), which is inherently unsafe?

            People

            • Assignee:
              Unassigned
              Reporter:
              gb96 Greg Bowering
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: