From f851e5d3ff88bc84bcfc441266f8b86548501178 Mon Sep 17 00:00:00 2001 From: sophie <16087569+sophie_liang@user.noreply.gitee.com> Date: Wed, 13 May 2026 11:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 29 ----------------------------- deploy.sh | 1 + 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9a6bbe40..d4fb0daa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,35 +51,6 @@ pipeline { } } - stage('Validate Docker Inputs') { - steps { - sh ''' - set -e - test -f docker-compose.yml - test -f backend/Dockerfile - test -f "docs/(表+字段).md" - - if grep -Eq '^docs/?$' .dockerignore 2>/dev/null && ! grep -Fxq '!docs/(表+字段).md' .dockerignore; then - echo "[Validate Docker Inputs] .dockerignore excludes docs, but docs/(表+字段).md is not re-included." - echo "[Validate Docker Inputs] Please keep docs/(表+字段).md in the Docker build context for Text2SQL." - exit 1 - fi - - if ! grep -Fq 'context: .' docker-compose.yml || ! grep -Fq 'dockerfile: backend/Dockerfile' docker-compose.yml; then - echo "[Validate Docker Inputs] docker-compose.yml must build hxops-backend from repository root with backend/Dockerfile." - exit 1 - fi - - if ! grep -Fq 'COPY docs/(表+字段).md /app/docs/(表+字段).md' backend/Dockerfile; then - echo "[Validate Docker Inputs] backend/Dockerfile must copy docs/(表+字段).md into the image." - exit 1 - fi - - echo "[Validate Docker Inputs] Docker build context and Text2SQL schema inputs are ready." - ''' - } - } - stage('Detect Changes') { steps { script { diff --git a/deploy.sh b/deploy.sh index a431f377..765865da 100755 --- a/deploy.sh +++ b/deploy.sh @@ -5,6 +5,7 @@ set -e # Hxops 部署脚本 (优化版) # 用途: 自动拉取代码、构建前端、重启容器 # 使用: ./deploy.sh +# 备注:该文件用于手动在服务器上执行该脚本,Jenkins自动部署已不用该文件 # ============================================================================== echo "🚀 开始部署 Hxops..."