Commit 506b48e7 authored by 王华's avatar 王华

Update .gitlab-ci.yml

parent 671231a5
Pipeline #53426 passed with stages
...@@ -30,14 +30,9 @@ install: ...@@ -30,14 +30,9 @@ install:
tags: tags:
- civ_manage_128 - civ_manage_128
script: script:
#- npm -v
#- npm install npm@6.14.14 -g #- npm install npm@6.14.14 -g
- npm -v - npm -v
- npm run init - npm run init
#cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - node_modules/
only: only:
- master - master
when: manual when: manual
...@@ -50,10 +45,6 @@ package: ...@@ -50,10 +45,6 @@ package:
- echo "${CI_PROJECT_DIR}" - echo "${CI_PROJECT_DIR}"
- git pull origin master - git pull origin master
- npm run build --releasepath=../CivWebPublish2021 - npm run build --releasepath=../CivWebPublish2021
#cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - node_modules/
allow_failure: false allow_failure: false
only: only:
- master - master
...@@ -71,9 +62,7 @@ push: ...@@ -71,9 +62,7 @@ push:
- 'git clean -fd' - 'git clean -fd'
- 'git remote set-url origin "https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2021.git"' - 'git remote set-url origin "https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2021.git"'
- 'git pull origin map' - 'git pull origin map'
#- 'git rm -rf "${TARGET_REPO_2021}/civmanage"' - 'git rm -rf "${TARGET_REPO_2021}/civmanage"'
#- 'git commit -m "chore: clear folder civmanage"'
#- '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 --allow-empty -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."'
......
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