Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: trigger on PR only #168

Open
jhecht opened this issue Mar 29, 2016 · 5 comments
Open

feature request: trigger on PR only #168

jhecht opened this issue Mar 29, 2016 · 5 comments

Comments

@jhecht
Copy link

jhecht commented Mar 29, 2016

is it possible to limit triggers to pull requests only, rather than on commit? We would like to avoid overloading our CI servers.

@YiannisDermitzakis
Copy link

One way to do it would be to Ignore the master branch, or only allow to Build From the pull request branches (refs/pull-requests/*) in the Advanced Configuration/Branch Options

@bhattkartik9
Copy link

Hey, Can you please describe this solution. As I am still facing this issue.. In Advanced Configuration/Branch Options I have selected "Ignore from -- master". My master branch name is "master"
Still Jenkins job triggered after every push in to branch also.

@YiannisDermitzakis
Copy link

Have you tried the full reference?
Ignore from: refs/heads/master

Personally I am only building from the Pull Requests (refs/pull-requests/*) and it works consistently. However, lately I noticed a change in behavior too, namely that the build is not only triggered when the "Trigger Build" button is pressed but also as soon as the pull request is created.

@bhattkartik9
Copy link

Hey, Thanks for the replay. I have done Both settings (refs/pull-requests/* & refs/heads/master) but no luck.
Every time while I push any commit to any Branch or Master Jenkins job will triggers immediately.

@dcc2904
Copy link

dcc2904 commented May 12, 2017

Hello everyone! Any news on the status of this request? I'm looking to only trigger builds on the opposite situation: Merges and NOT on Pull Requests. Any feedback is greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants