jenkinsci / ontrack-plugin

ontrack plug-in for Jenkins
https://plugins.jenkins.io/ontrack/
MIT License
9 stars 6 forks source link

OntrackTrigger: make minimumResult configurable #31

Closed DavidCADanneels closed 6 years ago

DavidCADanneels commented 6 years ago

When using OntrackTrigger to schedule builds to run on a certain promotion, the build will always rerun on the same version if no new promotion was found, but the latest result was 'worse than SUCCESS'

Making this 'minimumResult' configurable, will allow users to avoid rerunning Failed or Unstable builds, by setting this parameter to e.g. 'FAILURE' or 'UNSTABLE'

When using 'UNSTABLE' the build will only rerun if the previous run was worse, i.e. FAILURE (or ABORTED, ...) When using 'FAILURE' the build will only rerun if the previous run was worse, i.e. ABORTED, ... Failed builds will not be rerun in that case.

dcoraboeuf commented 6 years ago

Released in 2.31.3