diff --git a/Jenkinsfile b/Jenkinsfile index 3db8f9e..dc65fb4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,9 +8,11 @@ pipeline { stage('Checkout') { when { beforeAgent true; - branch 'main' - not { - changeset 'out/andysadguardhomeblocklist.txt' + allOf { + branch 'main' + not { + changeset 'out/andysadguardhomeblocklist.txt' + } } } steps { @@ -20,9 +22,11 @@ pipeline { stage('NPM Install') { when { beforeAgent true; - branch 'main' - not { - changeset 'out/andysadguardhomeblocklist.txt' + allOf { + branch 'main' + not { + changeset 'out/andysadguardhomeblocklist.txt' + } } } steps { @@ -32,9 +36,11 @@ pipeline { stage('Compile Adblock List') { when { beforeAgent true; - branch 'main' - not { - changeset 'out/andysadguardhomeblocklist.txt' + allOf { + branch 'main' + not { + changeset 'out/andysadguardhomeblocklist.txt' + } } } steps { @@ -49,9 +55,11 @@ pipeline { stage('git push') { when { beforeAgent true; - branch 'main' - not { - changeset 'out/andysadguardhomeblocklist.txt' + allOf { + branch 'main' + not { + changeset 'out/andysadguardhomeblocklist.txt' + } } } steps {