feat: 添加 internalgateway Jenkinsfile,包含部署和健康检查阶段

This commit is contained in:
2025-10-20 16:19:30 +08:00
parent 136ad489b4
commit b05264153c

View File

@ -0,0 +1,27 @@
pipeline {
agent any
stages {
stage('Deploy') {
steps {
script {
try {
sh '/usr/libexec/docker/cli-plugins/docker-compose -f ./docker-compose.yml up --build -d internalgateways'
} catch (Exception e) {
error "部署失败: ${e.message}"
}
}
}
}
stage('Health Check') {
steps {
script {
sleep time: 30, unit: 'SECONDS'
sh 'docker ps | grep internalgateways'
}
}
}
}
}