zad4 jenkins docker image creation

This commit is contained in:
s464953 2024-03-30 13:37:44 +01:00
parent 5793ad070b
commit fc8f9416f6
1 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,15 @@ pipeline {
}
}
stage('Stop and remove existing container') {
steps {
script {
sh "docker stop s464953 || true"
sh "docker rm s464953 || true"
}
}
}
stage('Build Docker image') {
steps {
script {