Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
jenkins
Commits
79c37811
Commit
79c37811
authored
Jul 30, 2018
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20140144: Job [Deploy_CHMB_UAT_136] configuration updated
Change performed by ·¨¼y°ó
parent
e51973a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
29 deletions
+14
-29
jobs/Deploy_CHMB_UAT_136/config.xml
jobs/Deploy_CHMB_UAT_136/config.xml
+14
-29
No files found.
jobs/Deploy_CHMB_UAT_136/config.xml
View file @
79c37811
...
...
@@ -4,7 +4,7 @@
<description></description>
<keepDependencies>
false
</keepDependencies>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.
8
"
>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.
9
"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
...
...
@@ -106,24 +106,11 @@ hotfix/1.15.1GA</description>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
</buildWrappers>
<prebuilders>
<hudson.tasks.BatchFile>
<command>
set path=%path%;
"
C:\Program Files\Git\usr\bin
"
;


REM 取得今天的年、月、日 (自動補零)

SETLOCAL EnableDelayedExpansion


for /f
"
skip=1 tokens=1-6 delims=
"
%%a in (
'
wmic path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table
'
) do (

IF NOT
"
%%~f
"
==
""
(

set /a FormattedDate=10000 * %%f + 100 * %%d + %%a

set FormattedDate=%%f!FormattedDate:~-4,2!!FormattedDate:~-2,2!_%%b:%%c

)

)

for /f
"
tokens=*
"
%%i in (
'
git rev-parse --short HEAD
'
) do set VAR=%%i_%FormattedDate%

for /F
"
delims=/ tokens=3
"
%%i in (
"
%GIT_BRANCH%
"
) do set version=%%i



sed -i
"
s/
<
base.*/
<
base href=\
"
\/CHMB\/\
"
version=\
"
%version%_%VAR%\
"
\/
>
/
"
src\main\resources\static\index.html
</command>
</hudson.tasks.BatchFile>
<hudson.tasks.Shell>
<command>
VAR=$(git rev-parse --short HEAD)_$(date +
"
%Y%m%d_%H%M
"
)
version=$(echo $GIT_BRANCH | cut -d
'
/
'
-f 3)
sed -i
"
s/
<
title.*/
<
title
>
CHM Booking Manage v${version}_${VAR}
<
\/title\/
>
/
"
src/main/resources/static/index.html
</command>
</hudson.tasks.Shell>
<hudson.plugins.copyartifact.CopyArtifact
plugin=
"copyartifact@1.41"
>
<project>
Deploy_ReportUploader_UAT
</project>
<filter>
target/ReportUploader*
</filter>
...
...
@@ -135,16 +122,14 @@ sed -i "s/<base.*/<base href=\"\/CHMB\/\" version=\"%v
</hudson.plugins.copyartifact.CopyArtifact>
</prebuilders>
<postbuilders>
<hudson.tasks.BatchFile>
<command>
set target=C:\CHM\CHMB

net stop CRM_HRB

FOR /F
"
tokens=5 delims=
"
%%P IN (
'
netstat -a -n -o ^| findstr :50401
'
) DO TaskKill.exe /F /PID %%P

del %target%\lib\*.* /q

"
C:\Program Files\7-Zip\7z.exe
"
e target\CHMB-pack.zip -o%target%\lib CHMB\lib\*.* -r

xcopy /Y /S src\main\resources\template\* %target%\template

xcopy /Y /S src\main\resources\sample\* %target%\sample

net start CRM_HRB
</command>
</hudson.tasks.BatchFile>
<hudson.tasks.Shell>
<command>
sudo systemctl stop CHMB
rm -f /opt/chm/chmb/lib/*
7za e target/CHMB-pack.zip -o/opt/chm/chmb/lib/ CHMB\lib\*.* -r
7za e target/CHMB-pack.zip -o/opt/chm/chmb/template/ CHMB\template\*.* -r
7za e target/CHMB-pack.zip -o/opt/chm/chmb/sample/ CHMB\sample\*.* -r
sudo systemctl start CHMB
</command>
</hudson.tasks.Shell>
</postbuilders>
<runPostStepsIfResult>
<name>
SUCCESS
</name>
...
...
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