Push ReportPortal link into Jenkins job description
Related-Prod: PRODX-48948
Change-Id: I334dae4c13092557fb2d5b3947ad845dbdde31ad
diff --git a/rp_reporter/rp_reporter/batch_reporter.py b/rp_reporter/rp_reporter/batch_reporter.py
index 6d52257..53b563a 100755
--- a/rp_reporter/rp_reporter/batch_reporter.py
+++ b/rp_reporter/rp_reporter/batch_reporter.py
@@ -309,6 +309,12 @@
description=str(description) +
f"\nPod Logs {artifactory_url}/pod-logs.tar.gz")
print(f"report is here {report_url}")
+ print("Pushing new description to job...")
+ try:
+ job.description = (job.description +
+ f"\n\n Link to ReportPortal {report_url}")
+ except Exception as e:
+ print(f"Can't push description to {job=}: {e}")
print(f" ʕノ•ᴥ•ʔノ Completed")