Commit 075b8eb2 authored by 杨思琦's avatar 杨思琦

Update .gitlab-ci.yml

parent d0976f2a
Pipeline #94676 failed
variables: variables:
TARGET_REPO_2021: "G:/CIV_CI/CivWebPublish2021_CivManage/CivWebPublish2021/" TARGET_REPO_2021: "F:/CIV_CI/CivWebPublish2021_CivManage/CivWebPublish2021/"
TARGET_REPO_Solution: "G:/CIV_CI/PandaSolution/civmanage/" TARGET_REPO_Solution: "F:/CIV_CI/PandaSolution/civmanage/"
TEMP_DIR: "G:/CIV_CI/tempV1/civmanage/" TEMP_DIR: "F:/CIV_CI/tempV1/civmanage/"
GIT_STRATEGY: 'fetch' GIT_STRATEGY: 'fetch'
GIT_CHECKOUT: 'false' GIT_CHECKOUT: 'false'
...@@ -17,7 +17,7 @@ stages: ...@@ -17,7 +17,7 @@ stages:
checkout: checkout:
stage: checkout stage: checkout
tags: tags:
- civ_manage_128 - civmanage
variables: variables:
GIT_CHECKOUT: 'true' GIT_CHECKOUT: 'true'
script: script:
...@@ -29,7 +29,7 @@ checkout: ...@@ -29,7 +29,7 @@ checkout:
install: install:
stage: install stage: install
tags: tags:
- civ_manage_128 - civmanage
script: script:
- npm -v - npm -v
- npm run init - npm run init
...@@ -40,11 +40,11 @@ install: ...@@ -40,11 +40,11 @@ install:
package: package:
stage: package stage: package
tags: tags:
- civ_manage_128 - civmanage
script: script:
- echo "${CI_PROJECT_DIR}" - echo "${CI_PROJECT_DIR}"
- git pull origin master - git pull origin master
- npm run build --releasepath=G:\\CIV_CI\\tempV1 - npm run build --releasepath=F:\\CIV_CI\\tempV1
#- npm run build --releasepath=../CivWebPublish2021 #- npm run build --releasepath=../CivWebPublish2021
allow_failure: false allow_failure: false
...@@ -57,7 +57,7 @@ push_2021: ...@@ -57,7 +57,7 @@ push_2021:
GIT_STRATEGY: none GIT_STRATEGY: none
stage: push stage: push
tags: tags:
- civ_manage_128 - civmanage
script: script:
- 'cd "${TARGET_REPO_2021}"' - 'cd "${TARGET_REPO_2021}"'
- 'git reset --hard head' - 'git reset --hard head'
...@@ -79,7 +79,7 @@ push_solution: ...@@ -79,7 +79,7 @@ push_solution:
GIT_STRATEGY: none GIT_STRATEGY: none
stage: push stage: push
tags: tags:
- civ_manage_128 - civmanage
script: script:
- 'cd "${TARGET_REPO_Solution}"' - 'cd "${TARGET_REPO_Solution}"'
- 'git reset --hard head' - 'git reset --hard head'
......
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