1
0
Fork 0

CI: Test if a build is required

This commit is contained in:
gardouille 2023-09-20 13:12:29 +02:00
parent 7ce16242f1
commit d10dc1f1e1
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 9 additions and 3 deletions

12
Jenkinsfile vendored
View File

@ -1,9 +1,14 @@
pipeline {
agent {label 'msspec_agent_amd64'}
stages {
stage('Building the .deb package with Docker...') {
stage('Test if a new build is required...') {
steps {
sh './build-deb-package-in-container.sh'
sh './test/check.eza.update.sh'
}
}
stage('Building the .deb package with Docker if required...') {
steps {
sh -c 'test -f ./test/.github.eza.upgrade && ./build-deb-package-in-container.sh'
}
}
//stage('Testing the package...') {
@ -19,7 +24,8 @@ pipeline {
}
stage('Cleaning up...') {
steps {
echo 'Cleaning artifacts...'
echo 'Clean old and unused Docker images...'
sh 'docker image prune --all --force'
}
}
}