Skip to content

Commit

Permalink
Merge pull request #56 from KostyaSha/fixCrappyTriggers
Browse files Browse the repository at this point in the history
Handle triggers start like normal job type. Robust onLoad.
(cherry picked from commit 9f43067)
  • Loading branch information
jglick committed Jun 19, 2017
1 parent 80c9a82 commit 6ddfce5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ public void stopTriggers() {

public void startTriggers(boolean newInstance) {
for (Trigger trigger : triggers) {
trigger.start(owner, newInstance);
try {
trigger.start(owner, newInstance);
} catch (Exception ex) {
LOGGER.log(Level.SEVERE, "Can't start trigger.", ex);
}
}
}

Expand Down Expand Up @@ -158,7 +162,7 @@ public PipelineTriggersJobProperty reconfigure(@Nonnull StaplerRequest req, @Che

thisProp.startTriggers(true);
return thisProp;
} catch (IOException e) {
} catch (Exception e) {
LOGGER.log(Level.WARNING, "could not configure triggers", e);
}

Expand Down

0 comments on commit 6ddfce5

Please sign in to comment.