From 9188ed101a0fadcfccb54c1ce403e5b938904754 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Tue, 8 Oct 2019 15:10:29 +0800 Subject: [PATCH] 20180083: Job [Hi365_OAuth_Authorization_SIT_Deploy] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ยงรตยบ~? --- .../config.xml | 135 ++++++++++++++++++ .../config.xml | 6 +- 2 files changed, 138 insertions(+), 3 deletions(-) create mode 100644 jobs/Hi365_OAuth_Authorization_DEV_Deploy/config.xml diff --git a/jobs/Hi365_OAuth_Authorization_DEV_Deploy/config.xml b/jobs/Hi365_OAuth_Authorization_DEV_Deploy/config.xml new file mode 100644 index 00000000..ef177b10 --- /dev/null +++ b/jobs/Hi365_OAuth_Authorization_DEV_Deploy/config.xml @@ -0,0 +1,135 @@ + + + + + false + + + + com.cloudbees.plugins.credentials.CredentialsProvider.Create:ExpertAdmin + com.cloudbees.plugins.credentials.CredentialsProvider.Create:scott + com.cloudbees.plugins.credentials.CredentialsProvider.Delete:ExpertAdmin + com.cloudbees.plugins.credentials.CredentialsProvider.Delete:scott + com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:ExpertAdmin + com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:scott + com.cloudbees.plugins.credentials.CredentialsProvider.Update:ExpertAdmin + 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:ExpertAdmin + hudson.model.Item.Build:scott + 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:ExpertAdmin + hudson.model.Item.Discover:scott + hudson.model.Item.Move:ExpertAdmin + hudson.model.Item.Move:scott + hudson.model.Item.Read:ExpertAdmin + hudson.model.Item.Read:scott + hudson.model.Item.Workspace:ExpertAdmin + hudson.model.Item.Workspace:scott + hudson.model.Run.Delete:ExpertAdmin + hudson.model.Run.Delete:scott + hudson.model.Run.Replay:ExpertAdmin + hudson.model.Run.Replay:scott + hudson.model.Run.Update:ExpertAdmin + hudson.model.Run.Update:scott + hudson.scm.SCM.Tag:ExpertAdmin + hudson.scm.SCM.Tag:scott + + + ylhealth + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/YongYue/hi365-authorization.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + master + + + false + + + + PreSale_SIT_172.16.40.163 + false + true + false + false + + false + + com.h2u.hi365.authorization + Authorization-Server + + clean package -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + false + false + true + false + false + false + false + -1 + false + false + true + + + + + + + false + + + false + + + + + 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 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 + + + + + systemctl stop Hi365Auth + +rm -f /opt/Hi365AuthorizationServer/lib/*.jar +/usr/bin/unzip -j -o target/Authorization-Server-pack.zip "Authorization-Server/lib/*" -d /opt/Hi365AuthorizationServer/lib + +systemctl start Hi365Auth + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file diff --git a/jobs/Hi365_OAuth_Authorization_SIT_Deploy/config.xml b/jobs/Hi365_OAuth_Authorization_SIT_Deploy/config.xml index 3cd3cbcf..bce31f0c 100644 --- a/jobs/Hi365_OAuth_Authorization_SIT_Deploy/config.xml +++ b/jobs/Hi365_OAuth_Authorization_SIT_Deploy/config.xml @@ -118,12 +118,12 @@ version=$(echo $GIT_BRANCH | cut -d'/' -f 3) - systemctl stop Hi365Auth + sudo systemctl stop Hi365Auth -rm -f /opt/Hi365AuthorizationServer/lib/*.jar +sudo rm -f /opt/Hi365AuthorizationServer/lib/*.jar /usr/bin/unzip -j -o target/Authorization-Server-pack.zip "Authorization-Server/lib/*" -d /opt/Hi365AuthorizationServer/lib -systemctl start Hi365Auth +sudo systemctl start Hi365Auth -- 2.26.2