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

SCM workspace being flushed to 0 when old builds are discarded in Matrix Builds

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It looks like when matrix jobs try to discard old builds, it also flushes my perforce workspaces to 0.

      Feb 04, 2016 3:34:40 AM hudson.plugins.perforce.PerforceSCM processWorkspaceBeforeDeletion
      INFO: Workspace 'c:\jenkins\workspace\matrix_job' is being deleted; flushing workspace to revision 0.
      Feb 04, 2016 3:34:40 AM hudson.plugins.perforce.PerforceSCM processWorkspaceBeforeDeletion
      INFO: Using remote perforce client: buildmachine01
      Feb 04, 2016 3:34:40 AM hudson.plugins.perforce.PerforceSCM processWorkspaceBeforeDeletion
      INFO: [matrix_job] $ p4 workspace -o buildmachine01
      Feb 04, 2016 3:34:40 AM hudson.plugins.perforce.PerforceSCM processWorkspaceBeforeDeletion
      INFO: 'Don't update client' is set. Not saving the client changes.
      Feb 04, 2016 3:34:40 AM hudson.plugins.perforce.PerforceSCM processWorkspaceBeforeDeletion
      INFO: [matrix_job] $ p4 sync -k //buildmachine01/...#0
      Feb 04, 2016 3:34:59 AM hudson.model.AsyncPeriodicWork$1 run
      INFO: Finished Workspace clean-up. 26,634 ms

      My perforce settings does not allow jenkins to create the workspace or manage it. Changelog, syncing, and workspace updating are disabled. This is quite bad since our p4 workspace is at least 300 GB to sync to again.

        Attachments

          Activity

          Hide
          viki89 Vikram Parthasarathy added a comment -

          I'm running into the same issue as well. Any updates? Thanks.

          Show
          viki89 Vikram Parthasarathy added a comment - I'm running into the same issue as well. Any updates? Thanks.
          Hide
          viki89 Vikram Parthasarathy added a comment -

          Worked around it with  Dhudson.model.WorkspaceCleanupThread.disabled=true as suggested here https://issues.jenkins-ci.org/browse/JENKINS-27329

          Show
          viki89 Vikram Parthasarathy added a comment - Worked around it with  Dhudson.model.WorkspaceCleanupThread.disabled=true as suggested here https://issues.jenkins-ci.org/browse/JENKINS-27329

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              dkuo David Kuo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: