parse_saby/Jenkinsfile

30 lines
526 B
Groovy

pipeline {
agent { label 'agent_smith' }
stages {
stage('Stop and Remove Existing Container') {
steps {
sh '''
"docker compose up --force-recreate --build -d parse_saby"
"docker image prune -f"
'''
}
}
stage('Build and Run Container') {
steps {
sh '''
docker-compose up --build -d
'''
}
}
stage('show logs') {
steps {
sh '''
docker-compose logs -f
'''
}
}
}
}