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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.