удалил повторное создание контейнера

main
Лев 2025-08-26 09:57:34 +05:00
parent f35222e2a4
commit 1f7933ced7
1 changed files with 2 additions and 9 deletions

11
Jenkinsfile vendored
View File

@ -2,20 +2,13 @@ pipeline {
agent { label 'agent_smith' } agent { label 'agent_smith' }
stages { stages {
stage('Stop and Remove Existing Container') { stage('recreate > build > reun container') {
steps { steps {
sh "docker-compose up --force-recreate --build -d parse_saby" sh "docker-compose up --force-recreate --build -d parse_saby"
sh "docker image prune -f" sh "docker image prune -f"
} }
} }
stage('Build and Run Container') {
steps {
sh '''
docker-compose up --build -d
'''
}
}
stage('show logs') { stage('show logs') {
steps { steps {
sh ''' sh '''