Skip to content

Commit

Permalink
Refactoring after merge of #88
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Nov 8, 2018
1 parent a680f84 commit 62b53f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Generic Webhook Plugin Changelog
Changelog of Generic Webhook Plugin.
## Unreleased
### No issue

**Use the job's configured quiet period**


[08e27215e450252](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/08e27215e450252) Robert Shade *2018-11-08 16:36:28*


## 1.47 (2018-11-07 13:58:28)
### GitHub [#47](https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/47) Declarative Pipeline support *enhancement*

Expand Down
6 changes: 5 additions & 1 deletion src/main/java/org/jenkinsci/plugins/gwt/GenericTrigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

public class GenericTrigger extends Trigger<Job<?, ?>> {

/** A value of -1 will make sure the quiet period of the job will be used. */
private static final int RESPECT_JOBS_QUIET_PERIOD = -1;

private List<GenericVariable> genericVariables = newArrayList();
private final String regexpFilterText;
private final String regexpFilterExpression;
Expand Down Expand Up @@ -139,7 +142,8 @@ public GenericTriggerResults trigger(
createParameterAction(parametersDefinitionProperty, resolvedVariables);
item =
retrieveScheduleJob(job) //
.scheduleBuild2(job, -1, new CauseAction(genericCause), parameters);
.scheduleBuild2(
job, RESPECT_JOBS_QUIET_PERIOD, new CauseAction(genericCause), parameters);
}
return new GenericTriggerResults(
item, resolvedVariables, renderedRegexpFilterText, regexpFilterExpression);
Expand Down

0 comments on commit 62b53f7

Please sign in to comment.