diff --git a/Jenkinsfile b/Jenkinsfile index fa4ad15..9b23c25 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,6 +17,8 @@ pipeline { withGradle { sh './gradlew :compileAdblockList' } + // Verify the file exists + sh 'test -f out/andysadguardhomeblocklist.txt' } } stage('Build/Push Docker Image') { @@ -34,6 +36,8 @@ pipeline { stages { stage('Build') { steps { + // Verify the file exists + sh 'test -f out/andysadguardhomeblocklist.txt' sh 'docker build -t gitea.fahrecker.com/andreas-personal/andysadguardhomeblocklist:dev-latest -t gitea.fahrecker.com/andreas-personal/andysadguardhomeblocklist:${tag} .' } }