Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
CivWeb
Commits
310c13a1
Commit
310c13a1
authored
Jul 27, 2022
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update CI
parent
14ad1acc
Pipeline
#56283
waiting for manual action with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
8 deletions
+34
-8
.gitlab-ci.yml
.gitlab-ci.yml
+34
-8
No files found.
.gitlab-ci.yml
View file @
310c13a1
variables
:
TARGET_REPO
:
"
G:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
TARGET_REPO_2021
:
"
G:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
TARGET_REPO_Solution
:
"
G:/CIV_CI/PandaSolution/civbase/"
GIT_STRATEGY
:
'
fetch'
GIT_CHECKOUT
:
'
false'
before_script
:
-
chcp 65001
-
'
git
config
core.autocrlf
false'
...
...
@@ -9,7 +12,8 @@ before_script:
stages
:
-
install
-
package
-
push
-
push2021
-
pushSolution
install
:
stage
:
install
...
...
@@ -38,7 +42,7 @@ package:
-
echo "${CI_PROJECT_DIR}"
-
git pull origin master
#- npm run init
-
npm run build --releasepath=../
CivWebPublish2021
-
npm run build --releasepath=../
PublishTemp
#cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
...
...
@@ -49,22 +53,22 @@ package:
when
:
manual
push
:
push
2021
:
variables
:
GIT_STRATEGY
:
none
stage
:
push
stage
:
push
2021
tags
:
-
civ_base
script
:
-
'
cd
"${TARGET_REPO}"'
-
'
cd
"${TARGET_REPO
_2021
}"'
-
'
git
reset
--hard
head'
-
'
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
--allow-unrelated-histories'
#- 'git rm -rf "${TARGET_REPO}/civbase"'
#- 'git rm -rf "${TARGET_REPO
_2021
}/civbase"'
#- 'git commit -m "chore: clear folder"'
#- 'git push origin map'
-
'
robocopy
"${CI_PROJECT_DIR}/../
CivWebPublish2021/civbase"
"${TARGET_REPO
}/civbase"
/S
;
-
'
robocopy
"${CI_PROJECT_DIR}/../
PublishTemp/civbase"
"${TARGET_REPO_2021
}/civbase"
/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
civbase."'
-
'
git
push
origin
map'
...
...
@@ -72,3 +76,25 @@ push:
only
:
-
master
when
:
on_success
pushSolution
:
variables
:
GIT_STRATEGY
:
none
tags
:
-
civbase
stage
:
pushSolution
script
:
-
'
cd
"${TARGET_REPO_Solution}"'
-
'
git
reset
--hard
head'
-
'
git
clean
-fd'
-
'
git
remote
set-url
origin
"https://${ACCESS_USER}:${ACCESS_PASSWORD}@g.civnet.cn:8443/PandaSolution/civbase.git"'
-
'
git
pull
origin
test'
-
'
git
rm
-rf
--ignore-unmatch
"${TARGET_REPO_Solution}"'
-
'
robocopy
"${CI_PROJECT_DIR}/../PublishTemp/civbase"
"${TARGET_REPO_Solution}"
/S
;
IF
((${LASTEXITCODE}
-le
8))
{cmd
/c
"exit
/b
0"}'
-
'
git
add
.
;
git
commit
-m
"auto
package
civbase."'
-
'
git
push
origin
test'
only
:
refs
:
-
master
when
:
manual
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