[JIRA] (JENKINS-61705) How to choose job name from Jenkinsfile when creating the pipeline from BlueOcean

0 views
Skip to first unread message

sdp.uturn@gmail.com (JIRA)

unread,
Mar 27, 2020, 12:13:03 AM3/27/20
to jenkinsc...@googlegroups.com
Sandeep Singh created an issue
 
Jenkins / Task JENKINS-61705
How to choose job name from Jenkinsfile when creating the pipeline from BlueOcean
Issue Type: Task Task
Assignee: Unassigned
Components: blueocean-plugin
Created: 2020-03-27 04:12
Priority: Minor Minor
Reporter: Sandeep Singh

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 27, 2020, 12:23:03 AM3/27/20
to jenkinsc...@googlegroups.com
Mark Waite commented on Task JENKINS-61705
 
Re: How to choose job name from Jenkinsfile when creating the pipeline from BlueOcean

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.

sdp.uturn@gmail.com (JIRA)

unread,
Mar 27, 2020, 12:58:03 AM3/27/20
to jenkinsc...@googlegroups.com

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

sdp.uturn@gmail.com (JIRA)

unread,
Mar 27, 2020, 12:59:02 AM3/27/20
to jenkinsc...@googlegroups.com

sdp.uturn@gmail.com (JIRA)

unread,
Mar 27, 2020, 1:00:02 AM3/27/20
to jenkinsc...@googlegroups.com
Sandeep Singh edited a comment on Task JENKINS-61705
thanks [~markewaite]. i added my comment before i was saw your comment. 

sdp.uturn@gmail.com (JIRA)

unread,
Mar 27, 2020, 1:08:03 AM3/27/20
to jenkinsc...@googlegroups.com

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. 

Reply all
Reply to author
Forward
0 new messages