From 26a48f9af27aa58cd78243cbb43e8b10d32d1e02 Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Tue, 7 Sep 2021 12:07:01 +0200 Subject: [PATCH] Fix failing non snapshot ci build After moving test-die-with-dignity to an external test module (see #77136) we need to ensure the javaRestTests are only triggered in snapshot builds as they fail on non snapshot builds. Fixes #77326 --- test/external-modules/die-with-dignity/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/test/external-modules/die-with-dignity/build.gradle b/test/external-modules/die-with-dignity/build.gradle index 166a9ca6d138e..9b93c30a7794e 100644 --- a/test/external-modules/die-with-dignity/build.gradle +++ b/test/external-modules/die-with-dignity/build.gradle @@ -13,6 +13,7 @@ esplugin { GradleUtils.extendSourceSet(project, "main", "javaRestTest", tasks.named("javaRestTest")) tasks.named("javaRestTest").configure { + it.onlyIf { BuildParams.isSnapshotBuild() } systemProperty 'tests.security.manager', 'false' systemProperty 'tests.system_call_filter', 'false' nonInputProperties.systemProperty 'log', "${-> testClusters.javaRestTest.singleNode().getServerLog()}"