]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ptl-tool: add switch for tags 56859/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 12 Apr 2024 13:55:32 +0000 (09:55 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 12 Apr 2024 13:55:32 +0000 (09:55 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/script/ptl-tool.py

index 15a7606fe1b23baa596a24f19ff9c67ad4014e48..505082305ff89b3ec1a1cf8cf0a7c9e8f4a7353b 100755 (executable)
@@ -169,6 +169,7 @@ INDICATIONS = [
 REDMINE_CUSTOM_FIELD_ID_SHAMAN_BUILD = 26
 REDMINE_CUSTOM_FIELD_ID_QA_RUNS = 27
 REDMINE_CUSTOM_FIELD_ID_QA_RELEASE = 28
+REDMINE_CUSTOM_FIELD_ID_QA_TAGS = 3
 REDMINE_CUSTOM_FIELD_ID_GIT_BRANCH = 29
 REDMINE_ENDPOINT = "https://tracker.ceph.com"
 REDMINE_PROJECT_QA = "ceph-qa"
@@ -473,6 +474,8 @@ def build_branch(args):
         custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_RUNS, 'value': branch})
         if args.qa_release:
             custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_RELEASE, 'value': args.qa_release})
+        if args.qa_tags:
+            custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_TAGS, 'value': args.qa_tags})
 
         G.git.push(CI_REMOTE_URL, branch) # for shaman
         G.git.push(CI_REMOTE_URL, tag.name) # for archival
@@ -515,6 +518,7 @@ def main():
     parser.add_argument('--no-credits', dest='credits', action='store_false', help='skip indication search (Reviewed-by, etc.)')
     parser.add_argument('--pr-label', dest='pr_label', action='store', help='label PRs for testing')
     parser.add_argument('--qa-release', dest='qa_release', action='store', help='QA release for tracker')
+    parser.add_argument('--qa-tags', dest='qa_tags', action='store', help='QA tags for tracker')
     parser.add_argument('--stop-at-built', dest='stop_at_built', action='store_true', help='stop execution when branch is built')
     parser.add_argument('prs', metavar="PR", type=int, nargs='*', help='Pull Requests to merge')
     args = parser.parse_args(argv)