]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build-integration-branch: Append stable branch name 36093/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 14 Jul 2020 10:07:59 +0000 (12:07 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 14 Jul 2020 10:07:59 +0000 (12:07 +0200)
For stable wip- branches, build matching flavors according to

https://github.com/tchaikov/ceph-build/blob/master/ceph-dev-trigger/config/definitions/ceph-dev-trigger.yml
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/script/build-integration-branch

index 7430237ceceba930bfa6cd010a3440a86c833395..f5cc4c10644e58aac7c22b92bc68b3ed3ec65a01 100755 (executable)
@@ -24,7 +24,7 @@ from __future__ import print_function
 import json
 import os
 import requests
-from subprocess import call
+from subprocess import call, check_output
 import sys
 import time
 try:
@@ -35,6 +35,11 @@ except:
 TIME_FORMAT = '%Y-%m-%d-%H%M'
 postfix = "-" + time.strftime(TIME_FORMAT, time.localtime())
 
+current_branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).strip().decode()
+if current_branch in 'mimic nautilus octopus pacific'.split():
+  postfix += '-' + current_branch
+  print(f"Adding current branch name '-{current_branch}' as a postfix")
+
 repo = "ceph/ceph"
 
 try: