From c4fe1a62b32026ed16661c670cb851e632af6c13 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 15 Apr 2020 18:08:23 +0800 Subject: [PATCH] 20180083: Job [Deploy_CHM_PRESALE_163] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by 李漢浜 --- jobs/Deploy_CHM_PRESALE_163/config.xml | 65 ++++++++------------------ 1 file changed, 20 insertions(+), 45 deletions(-) diff --git a/jobs/Deploy_CHM_PRESALE_163/config.xml b/jobs/Deploy_CHM_PRESALE_163/config.xml index e1f96dda..d4f313b7 100644 --- a/jobs/Deploy_CHM_PRESALE_163/config.xml +++ b/jobs/Deploy_CHM_PRESALE_163/config.xml @@ -1,7 +1,6 @@ - - + - + false @@ -16,26 +15,33 @@ com.cloudbees.plugins.credentials.CredentialsProvider.Update:scott com.cloudbees.plugins.credentials.CredentialsProvider.View:ExpertAdmin com.cloudbees.plugins.credentials.CredentialsProvider.View:scott + hudson.model.Item.Build:20180084 hudson.model.Item.Build:ExpertAdmin hudson.model.Item.Build:scott + hudson.model.Item.Cancel:20180084 hudson.model.Item.Cancel:ExpertAdmin hudson.model.Item.Cancel:scott hudson.model.Item.Configure:ExpertAdmin hudson.model.Item.Configure:scott hudson.model.Item.Delete:ExpertAdmin hudson.model.Item.Delete:scott + hudson.model.Item.Discover:20180084 hudson.model.Item.Discover:ExpertAdmin hudson.model.Item.Discover:scott hudson.model.Item.Move:ExpertAdmin hudson.model.Item.Move:scott + hudson.model.Item.Read:20180084 hudson.model.Item.Read:ExpertAdmin hudson.model.Item.Read:scott + hudson.model.Item.Workspace:20180084 hudson.model.Item.Workspace:ExpertAdmin hudson.model.Item.Workspace:scott hudson.model.Run.Delete:ExpertAdmin hudson.model.Run.Delete:scott + hudson.model.Run.Replay:20180084 hudson.model.Run.Replay:ExpertAdmin hudson.model.Run.Replay:scott + hudson.model.Run.Update:20180084 hudson.model.Run.Update:ExpertAdmin hudson.model.Run.Update:scott hudson.scm.SCM.Tag:ExpertAdmin @@ -44,6 +50,7 @@ ylhealth + @@ -68,7 +75,7 @@ expert_develop - + 2 @@ -121,49 +128,17 @@ expert_develop true - - - - - - - false - - false - - - false - false - true - true - true - false - true - false - true - false - false - false - NONE - false - - - - - - - - + - + - VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") version=${GIT_BRANCH##*/} -sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html -sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/indexMinify.html +sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html +sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/indexMinify.html @@ -177,10 +152,10 @@ tempdir=$(mktemp -d) rm -f ${chm}/lib/* rm -rf ${chm}/templates/* -7za x target/CRM-pack.zip -o"${tempdir}" -mv -f ${tempdir}/CRM/lib/* "${chm}/lib" -mv -f ${tempdir}/CRM/templates/* "${chm}/templates" -rm -rf "${tempdir}" +7za x target/CRM-pack.zip -o"${tempdir}" +mv -f ${tempdir}/CRM/lib/* "${chm}/lib" +mv -f ${tempdir}/CRM/templates/* "${chm}/templates" +rm -rf "${tempdir}" systemctl start CRM -- 2.26.2