From 055d658a71c89aaa27f8b9bc77d8686410a5725c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 21 Jun 2020 12:31:22 +0200 Subject: Jenkins: lib: Nested when condition "not" requires exactly 1 child condition --- Jenkinsfile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 19227442..d865fea1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -169,13 +169,10 @@ pipeline { beforeOptions true beforeAgent true anyOf { - // Do not run ISO build when the Docker container definition or - // the build pipeline library changes as this has no direct impact - // on the ISO image. - not { - changeset "**/docker/*" - changeset "**/vars/*" - } + // Do not run ISO build when the Docker container definition or the build pipeline + // library changes as this has no direct impact on the ISO image. + not { changeset "**/docker/*" } + not { changeset "**/vars/*" } triggeredBy 'TimerTrigger' triggeredBy cause: "UserIdCause" } @@ -202,13 +199,10 @@ pipeline { beforeOptions true beforeAgent true anyOf { - // Do not run ISO build when the Docker container definition or - // the build pipeline library changes as this has no direct impact - // on the ISO image. - not { - changeset "**/docker/*" - changeset "**/vars/*" - } + // Do not run ISO build when the Docker container definition or the build pipeline + // library changes as this has no direct impact on the ISO image. + not { changeset "**/docker/*" } + not { changeset "**/vars/*" } triggeredBy 'TimerTrigger' triggeredBy cause: "UserIdCause" } -- cgit v1.2.3