Compare commits

...

2 Commits

32
adminservice.Jenkinsfile Normal file
View File

@ -0,0 +1,32 @@
pipeline {
agent any
stages {
stage('Clone') {
steps {
checkout scm
}
}
stage('Deploy') {
steps {
script {
try {
sh 'docker compose up -d adminservice -- build'
} catch (Exception e) {
error "部署失败: ${e.message}"
}
}
}
}
stage('Health Check') {
steps {
script {
sleep time: 30, unit: 'SECONDS'
sh 'docker ps | grep adminservice'
}
}
}
}
}