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

How to choose job name from Jenkinsfile when creating the pipeline from BlueOcean

    Details

    • Similar Issues:

      Description

      When creating a job/pipeline from BlueOcean interface the pipeline name is set to repo-name. I have a requirement to change this default behavior. We need a specific pattern in these Jenkins job name (something like a team name prefix for each pipeline name and this prefix is missing in the repo name).

      I am using declarative pipeline V2. I did a search here - https://jenkins.io/doc/book/pipeline/syntax/#options but seems no option to do so.

      Thanks in advance

      Please let me know if any information is required.

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          You can create multibranch pipeline jobs of any name you wish, outside the Blue Ocean interface.

          Blue Ocean intentionally creates a multibranch pipeline and intentionally does not give the user the flexibility to choose the name of the project. The project name is the same as the repository name. That is part of the simplification that Blue Ocean presents to the user when creating pipelines.

          Show
          markewaite Mark Waite added a comment - You can create multibranch pipeline jobs of any name you wish, outside the Blue Ocean interface. Blue Ocean intentionally creates a multibranch pipeline and intentionally does not give the user the flexibility to choose the name of the project. The project name is the same as the repository name. That is part of the simplification that Blue Ocean presents to the user when creating pipelines.
          Hide
          sdputurn Sandeep Singh added a comment -

          I am looking at any available option to be able to use my own defined name and not the repo-name by default. I found when you create a pipeline in jenkins BlueOcean and if a job already exist with the same repo name, it does allow me to override "display name". so is there a way to put job "display Name" in BlueOcean other than default

          Show
          sdputurn Sandeep Singh added a comment - I am looking at any available option to be able to use my own defined name and not the repo-name by default. I found when you create a pipeline in jenkins BlueOcean and if a job already exist with the same repo name, it does allow me to override "display name". so is there a way to put job "display Name" in BlueOcean other than default
          Hide
          sdputurn Sandeep Singh added a comment - - edited

          thanks Mark Waite. i added my comment before i saw your comment. 

          Show
          sdputurn Sandeep Singh added a comment - - edited thanks Mark Waite . i added my comment before i saw your comment. 
          Hide
          sdputurn Sandeep Singh added a comment -

          i am facing this problem for setting up RBAC. i wanted different teams (eg teamA, teamB) have access  to folders (A,B) or any item matching pattern ".A. or .B." respectively. but when user create pipeline from blueOcean interface user does not get choice to put a name matching the regex or creating the job inside a folder. due to this after teamA create a pipeline that does not match the regex, the pipeline is not visible to them. 

          Show
          sdputurn Sandeep Singh added a comment - i am facing this problem for setting up RBAC. i wanted different teams (eg teamA, teamB) have access  to folders (A,B) or any item matching pattern ". A. or . B. " respectively. but when user create pipeline from blueOcean interface user does not get choice to put a name matching the regex or creating the job inside a folder. due to this after teamA create a pipeline that does not match the regex, the pipeline is not visible to them. 

            People

            • Assignee:
              Unassigned
              Reporter:
              sdputurn Sandeep Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: