Files
KonSoft.Clean/adminservice.Jenkinsfile

26 lines
620 B
Plaintext

pipeline {
agent any
stages {
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'
}
}
}
}
}