feat: 优化 Jenkinsfile,移除不必要的 Clone 阶段并修正部署命令格式
This commit is contained in:
@ -2,17 +2,11 @@ pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Clone') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
script {
|
||||
try {
|
||||
sh 'docker compose up -d adminservice -- build'
|
||||
sh 'docker compose up -d adminservice --build'
|
||||
} catch (Exception e) {
|
||||
error "部署失败: ${e.message}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user