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

Perforce plugin does not recognize override of the jenkins workspace separator (default "@")

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Jenkins allows the user to override the separator used when concurrent builds need more than one workspace. By default, the separator is "@", but this can be changed on the jenkins command line with:
      -Dhudson.slaves.WorkspaceList=<some string>

      This part of the plugin code is the culprit:
      private String getConcurrentClientName(FilePath workspace, String p4Client) {
      if (workspace != null) {
      // Match @ followed by an integer at the end of the workspace path
      Pattern p = Pattern.compile(".*@(
      d+)$"); <<<<<<<<<<<<<<<<<<<<<< @ is hard coded, but this separator can be changed by the user
      Matcher matcher = p.matcher(workspace.getRemote());
      if (matcher.find())

      { p4Client += "_" + matcher.group(1); }

      }
      return p4Client;
      }

        Attachments

          Activity

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              ajbarber Andrew Barber
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: