测试脚本

This commit is contained in:
2025-07-20 00:04:59 +08:00
parent 6f1a40c2df
commit 7683d1cbca

6
Jenkinsfile vendored
View File

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