Jenkins file was added for test branch
BOT_open_sesam/pipeline/head There was a failure building this commit Details

test
dl 2025-05-16 16:44:00 +05:00
parent ca47adf559
commit 83aac7cd51
1 changed files with 21 additions and 0 deletions

21
Jenkinsfile vendored 100644
View File

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