测试脚本
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user