From def2a280181804c848a6c7d83012df2bbdaced06 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Fri, 24 Aug 2018 11:21:30 +0800 Subject: [PATCH] 20180083: Job [CRM_gitflow] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by §õº~? --- jobs/CRM_gitflow/config.xml | 98 +++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 jobs/CRM_gitflow/config.xml diff --git a/jobs/CRM_gitflow/config.xml b/jobs/CRM_gitflow/config.xml new file mode 100644 index 00000000..4aad5aed --- /dev/null +++ b/jobs/CRM_gitflow/config.xml @@ -0,0 +1,98 @@ + + + + CRM 專案 git flow 處理 + false + + + ylhealth + + + + + FLOW + release 還是 hotfix + + + release + hotfix + + + + + Version + 發行的版本 + 1.32GA + false + + + + + + 2 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM/ + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */master + + + false + + + + MAC_BUILD_Machine + false + false + false + false + + false + + + # 建立 release branch +git fetch +EXIST=$(git ls-remote --heads |grep $FLOW/$Version) +if [[ -z "$EXIST" ]]; then + if [ "$FLOW" == "release" ]; then + git checkout develop + else + git checkout master + fi + git pull + git checkout -b $FLOW/$Version + git push -u origin $FLOW/$Version +fi + + + git fetch +git checkout master +git pull +git checkout develop +git pull +git checkout $FLOW/$Version +git pull +git log master..$FLOW/$Version --pretty=format:'%s'| grep -E -o '[A-Z]+-[0-9]+'| sort|uniq + + + + + + false + + + + + \ No newline at end of file -- 2.26.2