From 8080b383d74d274a99d116a557398419e4258277 Mon Sep 17 00:00:00 2001 From: Pavel Tankov <4014969+ptankov@users.noreply.github.com> Date: Fri, 24 Jan 2025 21:52:43 +0200 Subject: [PATCH] CLOUD-869 Inverting the check to test whether the previous build's result is anything other than SUCCESS --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1eb649963..d0390a38a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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."