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
Some checks reported errors
andreas-personal/AndysAdguardHomeBlocklist/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
d883e5db40
commit
be80db8560
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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} .'
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user