Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - What's the difference between lastFailedBuild vs lastUnstableBuild vs lastUnSuccessfulBuild?

Tags:

jenkins

What's the difference between lastFailedBuild vs lastUnstableBuild vs lastUnSuccessfulBuild in Jenkins?

like image 772
Anand Patel Avatar asked Sep 27 '22 13:09

Anand Patel


1 Answers

To boil it down from the Jenkins terminology page which is not very clear.

lastFailedBuild - last time/link that compilation failed during the build, see below.

lastUnstableBuild - last time/link that tests failed during the build, see below.

lastUnsuccessfulBuild - ambiguous, see below.

Note: plugins can change the build states as well.


Unstable build - A build is unstable if it was built successfully and one or more publishers report it unstable. For example if the JUnit publisher is configured and a test fails then the build will be marked unstable.

Broken/Failed build - Build that failed during compilation.

Unsuccessful Build - Amibiguous, could mean both unstable and failed or just one of those.


Update: Jenkins now defines a new set of terminology which fails to mention any of these.

like image 119
Mike D Avatar answered Sep 30 '22 07:09

Mike D