Add test command to check if file exists
Some checks reported errors
andreas-personal/AndysAdguardHomeBlocklist/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Andreas Fahrecker 2024-08-07 15:31:08 +02:00
parent d883e5db40
commit be80db8560

4
Jenkinsfile vendored
View File

@ -17,6 +17,8 @@ pipeline {
withGradle { withGradle {
sh './gradlew :compileAdblockList' sh './gradlew :compileAdblockList'
} }
// Verify the file exists
sh 'test -f out/andysadguardhomeblocklist.txt'
} }
} }
stage('Build/Push Docker Image') { stage('Build/Push Docker Image') {
@ -34,6 +36,8 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { 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} .' sh 'docker build -t gitea.fahrecker.com/andreas-personal/andysadguardhomeblocklist:dev-latest -t gitea.fahrecker.com/andreas-personal/andysadguardhomeblocklist:${tag} .'
} }
} }