CI: Test if a build is required
This commit is contained in:
parent
7ce16242f1
commit
d10dc1f1e1
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue