fix:修正流水线配置(部署阶段)

This commit is contained in:
2025-07-17 09:39:41 +08:00
parent 344507ce5c
commit 7f8a4dda3f
Vendored
+1 -8
View File
@@ -20,14 +20,7 @@ pipeline {
stage('Build Docker Image') { stage('Build Docker Image') {
steps { steps {
script { sh 'docker build -t $IMAGE_NAME .'
// 切换到宿主环境调用 docker 命令
docker.image('docker:24.0.7-cli').inside('--entrypoint="" -v /var/run/docker.sock:/var/run/docker.sock -v $PWD:/workspace -w /workspace') {
sh '''
docker build -t $IMAGE_NAME .
'''
}
}
} }
} }