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

Plastic-SCM duplicate workspace names

XMLWordPrintable

      This bug involves workspaces names and the PlasticSCM plugin for Jenkins. 

      If two different Jenkins projects have a workspace with the same name, then building one will delete the files from the other one. This is due to the fact that Plastic cannot have duplicate workspace names.

      In the logs:

      15:55:43 WNAME#XXXXX#c:\JenkinsBuilds\NAME\bStompTest\workspace\WNAME
      15:55:43 [WNAME] $ "C:\Program Files\PlasticSCM5\client\cm" rmwk wk:WNAME
      15:55:43 The workspace WNAME has been deleted.
      15:55:43 [WNAME] $ "C:\Program Files\PlasticSCM5\client\cm" rmwk wk:WNAME
      15:55:43 The workspace WNAME has been deleted.
      15:55:45 [WNAME] $ "C:\Program Files\PlasticSCM5\client\cm" mkwk WNAME C:\JenkinsBuilds\NAME\aStompTest\workspace\WNAME –

       In this example, aStompTest and bStompTest both have a workspace name defined as WNAME. aStompTest is building, but the rmwk deletes the bStompTest directory.

      Possible solutions:

      1. Use Plastic's "cwk" command in this case. This will re-define the location of the Plastic workspace to a new directory. 

      2. Automatically rename duplicate workspace names 

      See also: http://www.plasticscm.net/index.php?/topic/3485-jenkins-plastic-plugin-confused-by-duplicated-workspace-names-between-projects/

       

            mig42 Miguel González
            amcilvaine Abraham McIlvaine
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: