]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ptl-tool: add release name to branch with switch
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 11 Apr 2024 19:16:18 +0000 (15:16 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 11 Apr 2024 19:20:21 +0000 (15:20 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/script/ptl-tool.py

index bf80ae258e805b9a2e776bb4751bcb225b7bd5c8..215db9cc06acf15f0f479ef4d4dc0f59728a7e51 100755 (executable)
@@ -303,6 +303,8 @@ def get_credits(session, pr, pr_req):
 def build_branch(args):
     base = args.base
     branch = datetime.datetime.utcnow().strftime(args.branch).format(user=USER)
+    if args.branch_release:
+        branch = branch + "-" + args.branch_release
     if args.debug_build:
         branch = branch + "-debug"
     label = args.label
@@ -501,6 +503,7 @@ def main():
         argv = sys.argv[1:]
     parser.add_argument('--base', dest='base', action='store', default=default_base, help='base for branch')
     parser.add_argument('--branch', dest='branch', action='store', default=default_branch, help='branch to create ("HEAD" leaves HEAD detached; i.e. no branch is made)')
+    parser.add_argument('--branch-release', dest='branch_release', action='store', help='release name to embed in branch (for shaman)')
     parser.add_argument('--create-qa', dest='create_qa', action='store_true', help='create QA run ticket')
     parser.add_argument('--debug', dest='debug', action='store_true', help='turn debugging on')
     parser.add_argument('--debug-build', dest='debug_build', action='store_true', help='append -debug to branch name prompting ceph-build to build with CMAKE_BUILD_TYPE=Debug')