From 8845bfa1dc874fe584a1104ea2d56099bc76de5e Mon Sep 17 00:00:00 2001 From: Falko Modler Date: Sun, 18 Apr 2021 21:46:25 +0200 Subject: [PATCH] CI: Fix tcks/resteasy-reactive/update-dependencies.sh failure on no-op incremental build --- tcks/resteasy-reactive/update-dependencies.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tcks/resteasy-reactive/update-dependencies.sh b/tcks/resteasy-reactive/update-dependencies.sh index d677904fc1ec8..7830991c3ad27 100755 --- a/tcks/resteasy-reactive/update-dependencies.sh +++ b/tcks/resteasy-reactive/update-dependencies.sh @@ -32,6 +32,12 @@ echo '' echo 'Building dependencies list from testuite pom.xml...' echo '' +if [ "${CI:-}" == true ] && [ ! -f "${PRG_PATH}/target/testsuite/tests/pom.xml" ] +then + echo 'Testsuite pom.xml not found, assuming no-op incremental build.' + exit 0 +fi + # get the Quarkus artifact ids from tests/pom.xml of the testsuite repo that is cloned in target # pipefail is switched off briefly so that a better error can be logged when nothing is found set +o pipefail