diff --git a/jobs/Deploy_CHM_PRESALE_163/config.xml b/jobs/Deploy_CHM_PRESALE_163/config.xml index e1f96ddab43006a20d36455dac8c2980bbae7ab1..d4f313b7461ce8d6e3976fe2d55989588969353d 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