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>
import json
import os
import requests
-from subprocess import call
+from subprocess import call, check_output
import sys
import time
try:
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: