From 9a3ffa83ccac9429dbd064f5a6b7f2a8b94999eb Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Fri, 24 Aug 2018 11:22:00 +0800 Subject: [PATCH] 20180083: Job [HRB_Mobile_gitflow] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by §õº~? --- jobs/HRB_Mobile_gitflow/config.xml | 106 +++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 jobs/HRB_Mobile_gitflow/config.xml diff --git a/jobs/HRB_Mobile_gitflow/config.xml b/jobs/HRB_Mobile_gitflow/config.xml new file mode 100644 index 00000000..19238351 --- /dev/null +++ b/jobs/HRB_Mobile_gitflow/config.xml @@ -0,0 +1,106 @@ + + + + HRB_Mobile 專案 git flow 處理 + false + + + ylhealth + + + + + NEW_BRANCH + 是否建立新的版本 + false + + + FLOW + release 還是 hotfix + + + release + hotfix + + + + + Version + 發行的版本 + 1.32 + false + + + + + + 1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_Mobile/ + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */master + + + false + + + + MAC_BUILD_Machine + false + false + false + false + + false + + + # 建立 release branch +if [[ "$NEW_BRANCH" == "true" ]]; then + echo $NEW_BRANCH +fi +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