Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Trigger jenkins job when tag pushed only on specific branch

Deleted user March 7, 2019

Hi

I setup jenkins job trigger automatically when tag pushed into bitbucket. It triggers when tag pushed in all the branches.

But now i want to trigger the build only when tag pushed into specific branch.

How can i do it?

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 8, 2019

Hello Vishwanath,

Your idea is an interesting idea, building only to a specific branch when a tag is pushed. From my understanding on this, within Jenkins, you would have to specify your Bitbucket branch within your Source Code Management options (Meaning you will have to hard code the branch within Jenkins).

I found a related topic within StackOverflow which attempts to tackle a similar idea. You may see that post at BitBucket+Jenkins: Trigger build only when specific branch is changed.

Please let us know if this helps point you in the right direction or if you are attempting to accomplish something different.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events