BOT_open_sesam/Jenkinsfile

24 lines
422 B
Groovy

pipeline {
agent { label 'agent_smith' }
stages {
stage('Stop and Remove Existing Container') {
steps {
sh '''
docker stop open_sesam || true
docker rm open_sesam || true
docker-compose down || true
'''
}
}
stage('Build and Run Container') {
steps {
sh '''
docker-compose up --build -d
'''
}
}
}
}