Commit 28881994 authored by 罗剑's avatar 罗剑

Update .gitlab-ci.yml

parent ec3f8f8a
Pipeline #61197 passed with stages
variables:
TARGET_REPO_2021: "G:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
TARGET_REPO_Solution: "G:/CIV_CI/PandaSolution/civbase/"
TEMP_DIR: "G:/CIV_CI/tempV1/civbase/"
GIT_STRATEGY: 'fetch'
GIT_CHECKOUT: 'false'
......@@ -55,7 +56,7 @@ package:
- echo "${CI_PROJECT_DIR}"
- git pull origin master
#- npm run init
- npm run build --releasepath=../PublishTemp
- npm run build --releasepath=G:\\CIV_CI\\tempV1
#cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
......@@ -79,7 +80,7 @@ pushSolution:
- 'git remote set-url origin "https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/PandaSolution/civbase.git"'
- 'git pull origin master'
- 'git rm -rf --ignore-unmatch "${TARGET_REPO_Solution}"'
- 'robocopy "${CI_PROJECT_DIR}/../PublishTemp/civbase" "${TARGET_REPO_Solution}" /S ;
- 'robocopy "${TEMP_DIR}/" "${TARGET_REPO_Solution}" /S ;
IF ((${LASTEXITCODE} -le 8)) {cmd /c "exit /b 0"}'
- 'git add . ; git commit --allow-empty -m "auto package civbase."'
- 'git push origin master'
......@@ -102,7 +103,7 @@ push2021:
- 'git remote set-url origin "https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2021.git"'
- 'git pull origin map'
- 'git rm -rf "${TARGET_REPO_2021}/civbase"'
- 'robocopy "${CI_PROJECT_DIR}/../PublishTemp/civbase" "${TARGET_REPO_2021}/civbase" /S ;
- 'robocopy "${TEMP_DIR}/" "${TARGET_REPO_2021}/civbase" /S ;
IF ((${LASTEXITCODE} -le 8)) {cmd /c "exit /b 0"}'
- 'git add . ; git reset HEAD Web.config CityInterface/Web.config CityWebFW/Web.config ; git commit --allow-empty -m "auto package civbase."'
- 'git push origin map'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment