BOT_open_sesam/Jenkinsfile

22 lines
418 B
Groovy

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
'''
}
}