On Wed, Nov 2, 2016 at 2:43 AM, Fima <
fkp...@gmail.com> wrote:
> 1. Why look at the last successful and not the last builds?
Because in general if the build failed, the publisher may not have
run. If all build steps have run, but there is something wrong with
the source code, then the status should be `UNSTABLE`. Using
`getLastSuccessfulBuild` guarantees that only complete builds are
considered.
> I can make It can check for last completed check if results were or
> actions were recorded and use replace actions to add them instead of
> relaying on latest successful?
Did not understand that sentence.
Possibly the logic could be amended to check both
`getLastSuccessfulBuild` and `getLastCompletedBuild` in case both
exist but the latter is newer; collecting all the `LastBuildAction`s
from each; for each `LastBuildAction` class, picking the newest of the
two choices, if both exist; and then calling `getProjectActions` on
those. Would be easy enough to write the main code; needs test
coverage.