Last active
February 14, 2018 21:03
-
-
Save katcaola/9c214569f982092e32cdb6be15c942a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For a given Jenkins Multibranch pipeline... | |
_the_ Bitbucket git repository that _contains_ the Jenkinsfile | |
_can_ trigger the relevant Jenkins job | |
_with_ the branch name (i.e. "Omit Branch Name" *not* checked in BitBucket) | |
_any_ Bitbucket git repository that _does not contain_ the Jenkinsfile | |
_can only_ trigger the relevant Jenkins job | |
_without_ the branch name (i.e. "Omit Branch Name" *is* checked in BitBucket) | |
============================================================================= | |
There are 2 main categories and some subcategories: | |
Category A: Job has no test reports configured: | |
A1: If the last build command executed by Jenkins exits with failure | |
(that is, non-zero) exit code, the build is considered to be failed. | |
Permalinks lastBuild, lastUnsuccessfulBuild and lastFailedBuild will | |
move forward. | |
A2: If the last build command exits with success (that is, zero) exit | |
code, the build is successful. Permalinks lastBuild, | |
lastSuccessfulBuild and lastStableBuild will all move forward. | |
Category B: Job has one or more test reports configured: | |
B1: If the last build command executed by Jenkins exits with failure | |
(that is, non-zero) exit code, the build is considered to be failed. | |
(Identical to A1). Permalinks lastBuild, lastUnsuccessulBuild and | |
lastFailedBuild will move forward. | |
B2: If the last build command exits with success (that is, zero) exit | |
code but test reports have some failed tests, the build is unstable. | |
Permalinks lastBuild, lastSuccessfulBuild and lastUnsuccessfulBuild | |
will move forward. | |
B3: If the last build command exits with success and all test have | |
passed, the build is stable. Permalinks lastBuild, lastSuccessfulBuild | |
and lastStableBuild will move forward. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment