Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
3edec83b
Commit
3edec83b
authored
Jul 20, 2022
by
王华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
38693e5c
Pipeline
#55752
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
.gitlab-ci.yml
.gitlab-ci.yml
+10
-8
No files found.
.gitlab-ci.yml
View file @
3edec83b
variables
:
TARGET_REPO_2021
:
"
G:/CIV_CI/CivWebPublish2021_CivManage/CivWebPublish2021/"
TARGET_REPO_Solution
:
"
G:/CIV_CI/PandaSolution/civmanage/"
TEMP_DIR
:
"
G:/CIV_CI/tempV1/civmanage/"
GIT_STRATEGY
:
'
fetch'
GIT_CHECKOUT
:
'
false'
...
...
@@ -12,8 +13,7 @@ stages:
-
checkout
-
install
-
package
-
push_2021
-
push_solution
-
push
checkout
:
stage
:
checkout
...
...
@@ -45,7 +45,8 @@ package:
script
:
-
echo "${CI_PROJECT_DIR}"
-
git pull origin master
-
npm run build --releasepath=../CivWebPublish2021
#- npm run build --releasepath=../CivWebPublish2021
-
npm run build --releasepath=${TEMP_DIR}
allow_failure
:
false
only
:
-
master
...
...
@@ -54,7 +55,7 @@ package:
push_2021
:
variables
:
GIT_STRATEGY
:
none
stage
:
push
_2021
stage
:
push
tags
:
-
civ_manage_128
script
:
...
...
@@ -63,7 +64,8 @@ push_2021:
-
'
git
clean
-fd'
-
'
git
remote
set-url
origin
"https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2021.git"'
-
'
git
pull
origin
map'
-
'
robocopy
"${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage"
"${TARGET_REPO_2021}/civmanage"
/S
;
#- 'robocopy "${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage" "${TARGET_REPO_2021}/civmanage" /S ;
-
'
robocopy
"${TEMP_DIR}/"
"${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
--allow-empty
-m
"auto
package
civmanage."'
-
'
git
push
origin
map'
...
...
@@ -74,7 +76,7 @@ push_2021:
push_solution
:
variables
:
GIT_STRATEGY
:
none
stage
:
push
_solution
stage
:
push
tags
:
-
civ_manage_128
script
:
...
...
@@ -83,10 +85,10 @@ push_solution:
-
'
git
clean
-fd'
-
'
git
remote
set-url
origin
"https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/PandaSolution/civmanage.git"'
-
'
git
pull
origin'
-
'
robocopy
"${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage"
"${TARGET_REPO_Solution}"
/S
;
#- 'robocopy "${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage" "${TARGET_REPO_Solution}" /S ;
-
'
robocopy
"${TEMP_DIR}/"
"${TARGET_REPO_Solution}/"
/S
;
IF
((${LASTEXITCODE}
-le
8))
{cmd
/c
"exit
/b
0"}'
-
'
git
add
.
;
git
reset
HEAD
;
git
commit
--allow-empty
-m
"auto
package
civmanage."'
-
'
git
push
origin'
only
:
-
master
when
:
on_success
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment