Commit c27fd79f authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

scott: Job [Deploy_CHM_UAT_136] configuration updated

Change performed by 楊慶堂
parent 2c9236ab
<?xml version='1.1' encoding='UTF-8'?>
<maven2-moduleset plugin="maven-plugin@3.4">
<?xml version="1.1" encoding="UTF-8" standalone="no"?><maven2-moduleset plugin="maven-plugin@3.4">
<actions/>
<description></description>
<description/>
<keepDependencies>false</keepDependencies>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13">
<gitLabConnection>ylhealth</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
......@@ -16,7 +16,7 @@ develop
master
release/1.61GA
hotfix/1.42.3GA</description>
<defaultValue>hotfix/1.71.2GA</defaultValue>
<defaultValue>release/1.72GA</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
......@@ -30,7 +30,7 @@ hotfix/1.42.3GA</description>
</strategy>
</jenkins.model.BuildDiscarderProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.0">
<scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
......@@ -119,15 +119,15 @@ hotfix/1.42.3GA</description>
</configs>
</hudson.plugins.parameterizedtrigger.BuildTrigger>
<jenkins.plugins.slack.SlackNotifier plugin="slack@2.37">
<baseUrl></baseUrl>
<teamDomain></teamDomain>
<authToken></authToken>
<tokenCredentialId></tokenCredentialId>
<baseUrl/>
<teamDomain/>
<authToken/>
<tokenCredentialId/>
<botUser>false</botUser>
<room></room>
<room/>
<sendAsText>false</sendAsText>
<iconEmoji></iconEmoji>
<username></username>
<iconEmoji/>
<username/>
<startNotification>false</startNotification>
<notifySuccess>false</notifySuccess>
<notifyAborted>true</notifyAborted>
......@@ -142,29 +142,29 @@ hotfix/1.42.3GA</description>
<includeFailedTests>false</includeFailedTests>
<commitInfoChoice>NONE</commitInfoChoice>
<includeCustomMessage>false</includeCustomMessage>
<customMessage></customMessage>
<customMessageSuccess></customMessageSuccess>
<customMessageAborted></customMessageAborted>
<customMessageNotBuilt></customMessageNotBuilt>
<customMessageUnstable></customMessageUnstable>
<customMessageFailure></customMessageFailure>
<customMessage/>
<customMessageSuccess/>
<customMessageAborted/>
<customMessageNotBuilt/>
<customMessageUnstable/>
<customMessageFailure/>
</jenkins.plugins.slack.SlackNotifier>
</publishers>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.38">
<deleteDirs>false</deleteDirs>
<cleanupParameter></cleanupParameter>
<externalDelete></externalDelete>
<cleanupParameter/>
<externalDelete/>
<disableDeferredWipeout>false</disableDeferredWipeout>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.11.1"/>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.11.2"/>
</buildWrappers>
<prebuilders>
<hudson.tasks.Shell>
<command>VAR=$(git rev-parse --short HEAD)_$(date +&quot;%Y%m%d_%H%M&quot;)
<command>VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M")
version=${GIT_BRANCH##*/}
sed -i &quot;s/&lt;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;CRM v${version}_${VAR}&lt;\/title\/&gt;/&quot; src/main/resources/static/index.html
sed -i &quot;s/&lt;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;CRM v${version}_${VAR}&lt;\/title\/&gt;/&quot; src/main/resources/static/indexMinify.html</command>
sed -i "s/&lt;title.*/&lt;title ng-bind='page_title'&gt;CRM v${version}_${VAR}&lt;\/title\/&gt;/" src/main/resources/static/index.html
sed -i "s/&lt;title.*/&lt;title ng-bind='page_title'&gt;CRM v${version}_${VAR}&lt;\/title\/&gt;/" src/main/resources/static/indexMinify.html</command>
</hudson.tasks.Shell>
</prebuilders>
<postbuilders>
......@@ -177,10 +177,10 @@ tempdir=$(mktemp -d)
sudo rm -f ${chm}/lib/*
sudo rm -rf ${chm}/templates/*
7za x target/CRM-pack.zip -o&quot;${tempdir}&quot;
sudo mv -f ${tempdir}/CRM/lib/* &quot;${chm}/lib&quot;
sudo mv -f ${tempdir}/CRM/templates/* &quot;${chm}/templates&quot;
rm -rf &quot;${tempdir}&quot;
7za x target/CRM-pack.zip -o"${tempdir}"
sudo mv -f ${tempdir}/CRM/lib/* "${chm}/lib"
sudo mv -f ${tempdir}/CRM/templates/* "${chm}/templates"
rm -rf "${tempdir}"
sudo systemctl start CRM</command>
</hudson.tasks.Shell>
......
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