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

Validate project naming regex immediately

    XMLWordPrintable

Details

    • Improvement
    • Status: Reopened (View Workflow)
    • Minor
    • Resolution: Unresolved
    • core
    • None

    Description

      Manage Jenkins --> Restrict project naming --> Strategy: Pattern --> Name Pattern: <your regex>

      When trying to save the configuration, the regex should be checked for correctness (e.g. matching parens)

      Alternatively this could even be done in real time on the configuration page.

      [Workaround: any regex errors will appear - and need to be fixed immediately - when you try to configure/create a job]

      Attachments

        Activity

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          changelog.html
          core/src/main/java/jenkins/model/ProjectNamingStrategy.java
          core/src/main/resources/jenkins/model/Messages.properties
          core/src/main/resources/jenkins/model/Messages_ja.properties
          core/src/main/resources/jenkins/model/ProjectNamingStrategy/PatternProjectNamingStrategy/config.groovy
          http://jenkins-ci.org/commit/jenkins/5587d13f58b14bffa9f77f7433358e14add9bcfa
          Log:
          [FIXED JENKINS-13524] Validate project naming regex immediately

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: changelog.html core/src/main/java/jenkins/model/ProjectNamingStrategy.java core/src/main/resources/jenkins/model/Messages.properties core/src/main/resources/jenkins/model/Messages_ja.properties core/src/main/resources/jenkins/model/ProjectNamingStrategy/PatternProjectNamingStrategy/config.groovy http://jenkins-ci.org/commit/jenkins/5587d13f58b14bffa9f77f7433358e14add9bcfa Log: [FIXED JENKINS-13524] Validate project naming regex immediately
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1668
          [FIXED JENKINS-13524] Validate project naming regex immediately (Revision 5587d13f58b14bffa9f77f7433358e14add9bcfa)

          Result = SUCCESS
          Seiji Sogabe : 5587d13f58b14bffa9f77f7433358e14add9bcfa
          Files :

          • core/src/main/resources/jenkins/model/ProjectNamingStrategy/PatternProjectNamingStrategy/config.groovy
          • core/src/main/resources/jenkins/model/Messages_ja.properties
          • core/src/main/resources/jenkins/model/Messages.properties
          • core/src/main/java/jenkins/model/ProjectNamingStrategy.java
          • changelog.html
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1668 [FIXED JENKINS-13524] Validate project naming regex immediately (Revision 5587d13f58b14bffa9f77f7433358e14add9bcfa) Result = SUCCESS Seiji Sogabe : 5587d13f58b14bffa9f77f7433358e14add9bcfa Files : core/src/main/resources/jenkins/model/ProjectNamingStrategy/PatternProjectNamingStrategy/config.groovy core/src/main/resources/jenkins/model/Messages_ja.properties core/src/main/resources/jenkins/model/Messages.properties core/src/main/java/jenkins/model/ProjectNamingStrategy.java changelog.html
          dogfood dogfood added a comment -

          Integrated in jenkins_ui-changes_branch #26
          [FIXED JENKINS-13524] Validate project naming regex immediately (Revision 5587d13f58b14bffa9f77f7433358e14add9bcfa)

          Result = SUCCESS
          Seiji Sogabe : 5587d13f58b14bffa9f77f7433358e14add9bcfa
          Files :

          • changelog.html
          • core/src/main/resources/jenkins/model/ProjectNamingStrategy/PatternProjectNamingStrategy/config.groovy
          • core/src/main/resources/jenkins/model/Messages_ja.properties
          • core/src/main/java/jenkins/model/ProjectNamingStrategy.java
          • core/src/main/resources/jenkins/model/Messages.properties
          dogfood dogfood added a comment - Integrated in jenkins_ui-changes_branch #26 [FIXED JENKINS-13524] Validate project naming regex immediately (Revision 5587d13f58b14bffa9f77f7433358e14add9bcfa) Result = SUCCESS Seiji Sogabe : 5587d13f58b14bffa9f77f7433358e14add9bcfa Files : changelog.html core/src/main/resources/jenkins/model/ProjectNamingStrategy/PatternProjectNamingStrategy/config.groovy core/src/main/resources/jenkins/model/Messages_ja.properties core/src/main/java/jenkins/model/ProjectNamingStrategy.java core/src/main/resources/jenkins/model/Messages.properties

          Noticed in Jenkins 2.0, where Folder plugin is installed by default. Once I set Project naming pattern, and upon creating Folder, it is also looking for the pattern to match.

          The folders should not follow project naming pattern. But if required, it should be seperate patternĀ 

          sagayd Sagayaraj David added a comment - Noticed in Jenkins 2.0, where Folder plugin is installed by default. Once I set Project naming pattern, and upon creating Folder, it is also looking for the pattern to match. The folders should not follow project naming pattern. But if required, it should be seperate patternĀ 

          People

            sogabe sogabe
            bgolding Ben Golding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: