Сконфигурировал Jenkinsfile

main
Лев 2025-08-25 11:25:51 +05:00
parent 972524c056
commit e97f5e34c5
1 changed files with 22 additions and 0 deletions

22
Jenkinsfile vendored 100644
View File

@ -0,0 +1,22 @@
pipeline {
agent { label 'agent_smith' }
stages {
stage('Stop and Remove Existing Container') {
steps {
sh '''
docker stop parse_saby || true
docker rm parse_saby || true
'''
}
}
stage('Build and Run Container') {
steps {
sh '''
docker build -t parse-saby .
'''
}
}
}
}