Skip to content

Commit

Permalink
[JENKINS-22131] Forgot to use a job’s configured quiet period when no…
Browse files Browse the repository at this point in the history
…t otherwise specified.
  • Loading branch information
jglick committed Apr 10, 2014
1 parent 9bf265e commit a1cd49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/jenkins/model/ParameterizedJobMixIn.java
Expand Up @@ -75,12 +75,12 @@ public abstract class ParameterizedJobMixIn<JobT extends Job<JobT, RunT> & Param
/** @see BuildableItem#scheduleBuild() */
@SuppressWarnings("deprecation")
public final boolean scheduleBuild() {
return scheduleBuild(Jenkins.getInstance().getQuietPeriod(), new Cause.LegacyCodeCause());
return scheduleBuild(asJob().getQuietPeriod(), new Cause.LegacyCodeCause());
}

/** @see BuildableItem#scheduleBuild(Cause) */
public final boolean scheduleBuild(Cause c) {
return scheduleBuild(Jenkins.getInstance().getQuietPeriod(), c);
return scheduleBuild(asJob().getQuietPeriod(), c);
}

/** @see BuildableItem#scheduleBuild(int) */
Expand Down

0 comments on commit a1cd49b

Please sign in to comment.