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
03f5a68c
Commit
03f5a68c
authored
3 years ago
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
11cc6049
master
dev-database
dev-solution
dev-达梦
styleEditBranch
No related merge requests found
Pipeline
#41603
passed with stages
in 17 minutes 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
25 deletions
+39
-25
.gitlab-ci.yml
.gitlab-ci.yml
+39
-25
No files found.
.gitlab-ci.yml
View file @
03f5a68c
variables
:
TARGET_REPO_2021
:
"
F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
GIT_STRATEGY
:
'
fetch'
GIT_CHECKOUT
:
'
false'
TARGET_REPO_2020
:
"
F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2020/"
TARGET_REPO_2019
:
"
F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish/"
before_script
:
-
chcp 65001
-
'
git
config
core.autocrlf
false'
stages
:
-
checkout
-
install
-
package
-
push
checkout
:
stage
:
checkout
variables
:
GIT_CHECKOUT
:
'
true'
script
:
-
echo "Got a clean git copy."
only
:
-
master
when
:
manual
install
:
stage
:
install
script
:
-
npm run init
#
cache:
#
key: ${CI_COMMIT_REF_SLUG}
#
paths:
#
- node_modules/
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
-
node_modules/
only
:
-
master
when
:
manual
...
...
@@ -41,10 +29,10 @@ package:
script
:
-
echo "${CI_PROJECT_DIR}"
-
npm run build --releasepath=../CivWebPublish2021
#
cache:
#
key: ${CI_COMMIT_REF_SLUG}
#
paths:
#
- node_modules/
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
-
node_modules/
only
:
-
master
when
:
manual
...
...
@@ -59,13 +47,39 @@ push:
-
'
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'
#
- 'git rm -rf "${TARGET_REPO_2021}/civmanage"'
#
- 'git commit -m "chore: clear folder civmanage"'
#
- 'git push origin map'
-
'
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
;
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
push
origin
map'
-
'
cd
"${TARGET_REPO_2020}"'
-
'
git
reset
--hard
head'
-
'
git
clean
-fd'
-
'
git
remote
set-url
origin
"https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2020.git"'
-
'
git
pull
origin
map'
-
'
git
rm
-rf
"${TARGET_REPO_2020}/civmanage"'
-
'
git
commit
-m
"chore:
clear
folder
civmanage"'
-
'
git
push
origin
map'
-
'
robocopy
"${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage"
"${TARGET_REPO_2020}/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
push
origin
map'
-
'
cd
"${TARGET_REPO_2019}"'
-
'
git
reset
--hard
head'
-
'
git
clean
-fd'
-
'
git
remote
set-url
origin
"https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish.git"'
-
'
git
pull
origin
map'
-
'
git
rm
-rf
"${TARGET_REPO_2019}/civmanage"'
-
'
git
commit
-m
"chore:
clear
folder
civmanage"'
-
'
git
push
origin
map'
-
'
robocopy
"${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage"
"${TARGET_REPO_2019}/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
push
origin
map'
only
:
-
master
when
:
manual
This diff is collapsed.
Click to expand it.
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