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

$JOB_NAME doesn't work with matrix projects due to illegal character '/' in workspace name

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Adding a client workspace spec. like jenkins-$JOB_NAME will cause a P4 error:

      xxx $ "C:\Program Files\Perforce\p4.exe" -s client -i
      Caught exception communicating with perforce.  Slashes (/) not allowed in  xxxxx
      

      when used in a matrix project. Something like below:

      String nameFixer(AbstractProject project) {
              String name = project.getFullName();
              return name.replace('/','-').replace('=','-').replace(',','-');
          }
      

      when substituting "JOB_NAME" is a possible fix to create valid workspace name.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Assigned the issue to the proper component.

          BTW, seems that the issue has been already solved

          Show
          oleg_nenashev Oleg Nenashev added a comment - Assigned the issue to the proper component. BTW, seems that the issue has been already solved
          Hide
          rpetti Rob Petti added a comment -

          Yes, this is resolved. I'm using it in production.

          Show
          rpetti Rob Petti added a comment - Yes, this is resolved. I'm using it in production.

            People

            Assignee:
            rpetti Rob Petti
            Reporter:
            abigos Andy Bigos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: