Backport #67402 to 24.6: CI: Fix build results for release branches

This commit is contained in:
robot-clickhouse 2024-07-29 21:09:29 +00:00
parent b364b95b18
commit 75b4ce2873

View File

@ -636,7 +636,9 @@ def _upload_build_artifacts(
int(job_report.duration),
GITHUB_JOB_API_URL(),
head_ref=pr_info.head_ref,
pr_number=pr_info.number,
# PRInfo fetches pr number for release branches as well - set pr_number to 0 for release
# so that build results are not mistakenly treated as feature branch builds
pr_number=pr_info.number if pr_info.is_pr else 0,
)
report_url = ci_cache.upload_build_report(build_result)
print(f"Report file has been uploaded to [{report_url}]")