Skip to content

Commit

Permalink
Merge pull request #83 from anenviousguest/master
Browse files Browse the repository at this point in the history
[JENKINS-41980] SCM triggering should also be suppressed for branch events
  • Loading branch information
stephenc committed Feb 13, 2017
2 parents 717536b + d7334e5 commit a8ae07c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/jenkins/branch/NoTriggerBranchProperty.java
Expand Up @@ -69,7 +69,7 @@ public boolean shouldSchedule(Queue.Task p, List<Action> actions) {
for (Action action : actions) {
if (action instanceof CauseAction) {
for (Cause c : ((CauseAction) action).getCauses()) {
if (c instanceof BranchIndexingCause) {
if (c instanceof BranchIndexingCause || c instanceof BranchEventCause) {
if (p instanceof Job) {
Job<?,?> j = (Job) p;
if (j.getParent() instanceof MultiBranchProject) {
Expand Down
Expand Up @@ -87,7 +87,7 @@ public boolean shouldSchedule(Queue.Task p, List<Action> actions) {
for (Action action : actions) {
if (action instanceof CauseAction) {
for (Cause c : ((CauseAction) action).getCauses()) {
if (c instanceof BranchIndexingCause) {
if (c instanceof BranchIndexingCause || c instanceof BranchEventCause) {
if (p instanceof Job) {
Job<?,?> j = (Job) p;

Expand Down

0 comments on commit a8ae07c

Please sign in to comment.