Merge pull request #70350 from yuriw/wip-yuriw-ptl-tool-push-log

ptl-tool: log the ceph-ci push (and the equivalent git command)

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Yuri Weinstein 2026-07-21 07:48:50 -07:00 committed by GitHub
commit 1cadb4cd14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2256,8 +2256,10 @@ def build_branch(args):
if args.push_ci or (not args.no_push_ci and do_qa):
if not args.dry_run:
G.git.push(CI_REMOTE_URL, branch) # for shaman
log.info("Pushed branch %s to %s (git push %s %s)" % (branch, CI_REMOTE_URL, CI_REMOTE_URL, branch))
if created_branch and not args.no_tag:
G.git.push(CI_REMOTE_URL, tag.name) # for archival
log.info("Pushed tag %s to %s (git push %s %s)" % (tag.name, CI_REMOTE_URL, CI_REMOTE_URL, tag.name))
else:
log.info("[DRY RUN] Would push branch %s to %s" % (branch, CI_REMOTE_URL))
if created_branch and not args.no_tag: