Skip to content

Commit

Permalink
Update Jenkinsfile to propagate previous build result for e2eignore f…
Browse files Browse the repository at this point in the history
…ile checks
  • Loading branch information
ptankov committed Dec 19, 2024
1 parent 3a31bae commit fcf2723
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 @@ -293,7 +293,7 @@ void checkE2EIgnoreFiles() {
} else {
if (currentBuild.previousBuild?.result in ['FAILURE', 'ABORTED', 'UNSTABLE']) {
echo "All changed files are e2eignore files, and previous build failed. Propagating failure state."
currentBuild.result = 'FAILURE'
currentBuild.result = currentBuild.previousBuild?.result
error "Skipping execution as non-significant changes detected and previous build failed."
} else {
echo "All changed files are e2eignore files. Aborting pipeline execution."
Expand Down

0 comments on commit fcf2723

Please sign in to comment.