Skip to content

Commit

Permalink
CLOUD-869 Inverting the check to test whether the previous build's re…
Browse files Browse the repository at this point in the history
…sult is anything other than SUCCESS (#1022)
  • Loading branch information
ptankov authored Jan 25, 2025
1 parent 78e1954 commit 7593bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void checkE2EIgnoreFiles() {
if (needToRunTests) {
echo "Some changed files are outside of the e2eignore list. Proceeding with execution."
} else {
if (currentBuild.previousBuild?.result in ['FAILURE', 'ABORTED', 'UNSTABLE']) {
if (currentBuild.previousBuild?.result != 'SUCCESS') {
echo "All changed files are e2eignore files, and previous build was unsuccessful. Propagating previous state."
currentBuild.result = currentBuild.previousBuild?.result
error "Skipping execution as non-significant changes detected and previous build was unsuccessful."
Expand Down

0 comments on commit 7593bb1

Please sign in to comment.