Jenkins file was added for test branch
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
parent
ca47adf559
commit
83aac7cd51
|
|
@ -0,0 +1,21 @@
|
||||||
|
pipeline {
|
||||||
|
agent { label any }
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Stop and Remove Existing Container') {
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
docker stop fastapi_hello_time || true
|
||||||
|
docker rm fastapi_hello_time || true
|
||||||
|
docker-compose down || true
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build and Run Container') {
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
docker-compose up --build -d
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue