测试脚本

This commit is contained in:
2025-07-19 23:59:27 +08:00
parent 539781b3bb
commit ff3627572b

6
Jenkinsfile vendored
View File

@ -37,7 +37,7 @@ pipeline {
} }
stage('Build Docker Image') { stage('Build Docker Image') {
agent any // agent any
steps { steps {
echo "🐋 正在构建 Docker 镜像..." echo "🐋 正在构建 Docker 镜像..."
sh 'docker build -t "$DOCKER_IMAGE" .' sh 'docker build -t "$DOCKER_IMAGE" .'
@ -45,7 +45,7 @@ pipeline {
} }
stage('Stop Old Container') { stage('Stop Old Container') {
agent any // agent any
steps { steps {
echo "🛑 正在停止旧的容器(如果存在)..." echo "🛑 正在停止旧的容器(如果存在)..."
sh ''' sh '''
@ -58,7 +58,7 @@ pipeline {
} }
stage('Run New Container') { stage('Run New Container') {
agent any // agent any
steps { steps {
echo "🟢 正在运行新的容器..." echo "🟢 正在运行新的容器..."
sh """ sh """