Commit 07e73de8 authored by 王华's avatar 王华

Update .gitlab-ci.yml

parent 01993d4a
Pipeline #53409 waiting for manual action with stages
variables:
TARGET_REPO_2021: "F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
TARGET_REPO_2021: "G:/CIV_CI/CivWebPublish2021_WebGIS/CivWebPublish2021/"
GIT_STRATEGY: 'fetch'
GIT_CHECKOUT: 'false'
......@@ -15,6 +15,8 @@ stages:
checkout:
stage: checkout
tags:
- civ_webgis
variables:
GIT_CHECKOUT: 'true'
script:
......@@ -23,9 +25,10 @@ checkout:
- master
when: manual
install:
stage: install
tags:
- civ_webgis
script:
- npm -v
- npm run init
......@@ -39,6 +42,8 @@ install:
package:
stage: package
tags:
- civ_webgis
script:
- echo "${CI_PROJECT_DIR}"
- git pull origin master
......@@ -67,7 +72,7 @@ push:
#- 'git push origin map'
- 'robocopy "${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage" "${TARGET_REPO_2021}/civmanage" /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 -m "auto package civmanage."'
- 'git add . ; git reset HEAD Web.config CityInterface/Web.config CityWebFW/Web.config ; git commit --allow-empty -m "auto package civmanage."'
- 'git push origin map'
allow_failure: false
only:
......
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