1.)  For the "create branch directly in stash",  you can have 1 job triggered 
with Git SCM strategy "inverse" with "master" (meaning: to trigger only when 
the new branch or commits are pushed to any branch except "master")
2.)  For the "create pull request in stash", you need the Stash Pull Request 
Plugin.
3.) For the "merge to master", you can have another job triggered by gitCommit 
hook triggered only or SCM polling with commit is going to "master"


From: 
<[email protected]<mailto:[email protected]>> on 
behalf of John <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Friday, October 21, 2016 at 8:40 AM
To: Jenkins Users 
<[email protected]<mailto:[email protected]>>
Subject: JIRA/Stash (bitbucket server)/Jenkins setup - build kicking off 
unnecessarily

Hey everyone:

I have Stash (bitbucket server)/Jira integreated setup using Jenkins for CI.
I want to kick off my builds on "push to feature branch" only.

The issue I have is that the builds are kicking off on these 3 actions as well:
* create branch directly in stash
* create pull request in stash
* approval of pull request (merge to master)

I have this in branch specifier to prevent starting build on push to master
:^(?!.*master).*$

Would appreciate any help in how to prevent this.

Thanks
John

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/98cbbed9-5e94-4586-bfa0-c24ba8a88351%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/98cbbed9-5e94-4586-bfa0-c24ba8a88351%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D42FDCF3.5ECF3%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to