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

Regexp-driven validation of client workspace names

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be great to add possibility of workspace name validation according to naming policy, which should be defined in the global configuration.

      Proposed features:

      • Show error notifications if user enters wrong client workspace name
      • Fail creation of the workspace if client name violates naming policy

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -
            Show
            oleg_nenashev Oleg Nenashev added a comment - #1 - Fixed #2 - https://issues.jenkins-ci.org/browse/JENKINS-19864
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Done in 1.3.25

            Show
            oleg_nenashev Oleg Nenashev added a comment - Done in 1.3.25
            Hide
            lata lata kopalle added a comment -

            thanks a ton.

            Show
            lata lata kopalle added a comment - thanks a ton.
            Hide
            sstack S Stack added a comment - - edited

            Jenkins 1.534 / Perforce plugin 1.3.27

            • In Manage Jenkins / Configure System, I've specified P4 Client name pattern as ^cits-.*
            • In a new job, I'm able to configure Workspace as xyz-test-job. The GUI warns me Client name doesn't meet global pattern: ^cits-.* but the job is saved nonetheless.
            • I'm able to run the job which creates the client xyz-test-job which breaks my naming pattern.

            JENKINS-19864

            My apologies, there is already an opened task.

            Show
            sstack S Stack added a comment - - edited Jenkins 1.534 / Perforce plugin 1.3.27 In Manage Jenkins / Configure System , I've specified P4 Client name pattern as ^cits-.* In a new job, I'm able to configure Workspace as xyz-test-job . The GUI warns me Client name doesn't meet global pattern: ^cits-.* but the job is saved nonetheless. I'm able to run the job which creates the client xyz-test-job which breaks my naming pattern. JENKINS-19864 My apologies, there is already an opened task.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            @S Stack
            This improvement is fixed. I created JENKINS-18378 for your case

            Show
            oleg_nenashev Oleg Nenashev added a comment - @S Stack This improvement is fixed. I created JENKINS-18378 for your case

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: