What's the difference between lastFailedBuild vs lastUnstableBuild vs lastUnSuccessfulBuild in Jenkins?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With