Files
KonSoft.Clean/authserver.Jenkinsfile

27 lines
673 B
Plaintext

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