zad4 jenkins docker image creation
This commit is contained in:
parent
5793ad070b
commit
fc8f9416f6
|
@ -12,6 +12,15 @@ pipeline {
|
||||||
git 'https://git.wmi.amu.edu.pl/s464953/ium_464953.git'
|
git 'https://git.wmi.amu.edu.pl/s464953/ium_464953.git'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Stop and remove existing container') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
sh "docker stop s464953 || true"
|
||||||
|
sh "docker rm s464953 || true"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build Docker image') {
|
stage('Build Docker image') {
|
||||||
steps {
|
steps {
|
||||||
|
|
Loading…
Reference in New Issue