Re: JIRA/Stash (bitbucket server)/Jenkins setup - build kicking off unnecessarily
The Stash PR git ref spec is already different than the regular Git build ref spec you can't have all in 1 job/build. From: <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> on behalf of John <johntest...@gmail.com<mailto:johntest...@gmail.com>> Reply-To: "jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>" <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> Date: Friday, October 21, 2016 at 8:40 AM To: Jenkins Users <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> 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 jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. 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_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D42FDE19.5ECFD%25ingunawa%40cisco.com. For more options, visit https://groups.google.com/d/optout.
Re: JIRA/Stash (bitbucket server)/Jenkins setup - build kicking off unnecessarily
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: <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> on behalf of John <johntest...@gmail.com<mailto:johntest...@gmail.com>> Reply-To: "jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>" <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> Date: Friday, October 21, 2016 at 8:40 AM To: Jenkins Users <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> 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 jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. 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_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 jenkinsci-users+unsubscr...@googlegroups.com. 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.
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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/98cbbed9-5e94-4586-bfa0-c24ba8a88351%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.