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

Update .gitlab-ci.yml

parent 01993d4a
Pipeline #53409 waiting for manual action with stages
variables: variables:
TARGET_REPO_2021: "F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/" TARGET_REPO_2021: "G:/CIV_CI/CivWebPublish2021_WebGIS/CivWebPublish2021/"
GIT_STRATEGY: 'fetch' GIT_STRATEGY: 'fetch'
GIT_CHECKOUT: 'false' GIT_CHECKOUT: 'false'
...@@ -15,6 +15,8 @@ stages: ...@@ -15,6 +15,8 @@ stages:
checkout: checkout:
stage: checkout stage: checkout
tags:
- civ_webgis
variables: variables:
GIT_CHECKOUT: 'true' GIT_CHECKOUT: 'true'
script: script:
...@@ -23,9 +25,10 @@ checkout: ...@@ -23,9 +25,10 @@ checkout:
- master - master
when: manual when: manual
install: install:
stage: install stage: install
tags:
- civ_webgis
script: script:
- npm -v - npm -v
- npm run init - npm run init
...@@ -39,6 +42,8 @@ install: ...@@ -39,6 +42,8 @@ install:
package: package:
stage: package stage: package
tags:
- civ_webgis
script: script:
- echo "${CI_PROJECT_DIR}" - echo "${CI_PROJECT_DIR}"
- git pull origin master - git pull origin master
...@@ -67,7 +72,7 @@ push: ...@@ -67,7 +72,7 @@ push:
#- 'git push origin map' #- 'git push origin map'
- 'robocopy "${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage" "${TARGET_REPO_2021}/civmanage" /S ; - 'robocopy "${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage" "${TARGET_REPO_2021}/civmanage" /S ;
IF ((${LASTEXITCODE} -le 8)) {cmd /c "exit /b 0"}' 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' - 'git push origin map'
allow_failure: false allow_failure: false
only: 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