Skip to content
Permalink
Browse files
[JENKINS-41980] SCM triggering should also be suppressed for GitHub w…
…ebhooks.
  • Loading branch information
Vladislav Ponomarev committed Feb 13, 2017
1 parent 717536b commit d7334e5a0399895ac0abfad8a9bab5b3fa8c2b39
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/main/java/jenkins/branch/NoTriggerBranchProperty.java
  2. +1 −1 src/main/java/jenkins/branch/NoTriggerOrganizationFolderProperty.java
@@ -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) {
@@ -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;

0 comments on commit d7334e5

Please sign in to comment.