Skip to content

Commit

Permalink
Merge pull request #1 from jacob-keller/JENKINS-26010
Browse files Browse the repository at this point in the history
add actions to schedule2 for Workflow Jobs
  • Loading branch information
tfennelly committed Jul 16, 2015
2 parents 64ec1c9 + ee96231 commit 4fe3786
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -196,7 +196,11 @@ protected void schedule(GerritTrigger t, GerritCause cause, GerritTriggeredEvent
// TODO: Using SCMTriggerItem smells bad here. What should we be using?
// BuildableItem seems like the more correct interface to use, but it's scheduleBuild methods don't give
// access to the Future.
build = ((SCMTriggerItem)project).scheduleBuild2(projectbuildDelay);
build = ((SCMTriggerItem)project).scheduleBuild2(projectbuildDelay,
badgeAction,
new RetriggerAction(cause.getContext()),
new RetriggerAllAction(cause.getContext()),
parameters);
} else {
throw new IllegalStateException("Unexpected error. Unsupported Job type for Gerrit Trigger: "
+ project.getClass().getName());
Expand Down

0 comments on commit 4fe3786

Please sign in to comment.