diff options
author | Patrick Donnelly <pdonnell@redhat.com> | 2024-04-12 15:54:52 +0200 |
---|---|---|
committer | Patrick Donnelly <pdonnell@redhat.com> | 2024-04-12 15:54:52 +0200 |
commit | 5cda7e594aa3529b7cc45dc37b5f46842b0433c1 (patch) | |
tree | 634466f32ad2861af141949709a7995ed9103dcb /src/script/ptl-tool.py | |
parent | Merge pull request #56845 from Svelar/asan_rgw_crypto (diff) | |
download | ceph-5cda7e594aa3529b7cc45dc37b5f46842b0433c1.tar.xz ceph-5cda7e594aa3529b7cc45dc37b5f46842b0433c1.zip |
script/ptl-tool: conditionally add "QA Release" field
Use the redmine default.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to '')
-rwxr-xr-x | src/script/ptl-tool.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/script/ptl-tool.py b/src/script/ptl-tool.py index 0a152dc7431..15a7606fe1b 100755 --- a/src/script/ptl-tool.py +++ b/src/script/ptl-tool.py @@ -471,7 +471,8 @@ def build_branch(args): custom_fields = [] custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_SHAMAN_BUILD, 'value': branch}) custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_RUNS, 'value': branch}) - custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_RELEASE, 'value': args.qa_release}) + if args.qa_release: + custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_RELEASE, 'value': args.qa_release}) G.git.push(CI_REMOTE_URL, branch) # for shaman G.git.push(CI_REMOTE_URL, tag.name) # for archival @@ -513,7 +514,7 @@ def main(): parser.add_argument('--merge-branch-name', dest='merge_branch_name', action='store', default=False, help='name of the branch for merge messages') 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', default='main', help='QA release for tracker') + parser.add_argument('--qa-release', dest='qa_release', action='store', help='QA release 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) |