[JIRA] (JENKINS-61074) Allow Git plugin to give variable branch specifiers along with other hardcoded branch specifiers.

6 views
Skip to first unread message

akash94thakur@gmail.com (JIRA)

unread,
Feb 12, 2020, 10:46:02 PM2/12/20
to jenkinsc...@googlegroups.com
Akashdeep Thakur created an issue
 
Jenkins / Task JENKINS-61074
Allow Git plugin to give variable branch specifiers along with other hardcoded branch specifiers.
Issue Type: Task Task
Assignee: Mark Waite
Attachments: issue.png
Components: git-plugin
Created: 2020-02-13 03:45
Labels: git-plugin
Priority: Minor Minor
Reporter: Akashdeep Thakur

I have provided branch specifiers as shown in the attached image. If I remove the branch specifier with $BRANCH in it, job works perfectly(gets triggered) as anyone commits to develop or feature branches.

Now I also want that same job should also be able to build the project on any specific branch of choice. So I added a branch specifier and put $BRANCH in it. I have defined BRANCH as a string parameter and the user can give branch value as input when triggering the job manually.

But in this scenario even if the user gives a "bugfix112" job is still building develop branch. Or if earlier poll action had built the job on feature branch than even after providing user-input, the job will still build feature branch.

It seems like manual input has no effect. How can I configure a Jenkins job that can be triggered on poll SCM and also with user input for the branch parameter?

I also tried giving /$BRANCH,/${BRANCH} but no success.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

akash94thakur@gmail.com (JIRA)

unread,
Feb 12, 2020, 10:57:04 PM2/12/20
to jenkinsc...@googlegroups.com

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

unread,
Feb 15, 2020, 11:52:03 PM2/15/20
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Won't Fix
 

Jenkins multibranch pipeline and organization folders provide a much better way of defining jobs and managing them with multiple branches. When a single job changes from one branch to another, the history of the job is hard to read, the user interface is hard to understand, and the user is easily confused by the result.

Multibranch pipelines place the job definition inside the branch and automatically create and delete jobs as branches are created and deleted. History is retained for a single branch and is easy to understand.

Change By: Mark Waite
Status: Open Closed
Resolution: Won't Fix

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

unread,
Feb 19, 2020, 8:41:02 AM2/19/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages