Skip to contentSkip to conversation

scripts/send-qa-email: Add URL of build to QA email

PATCH New Richard Purdie 1 participant 1 message Sep 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/send-qa-email: Add URL of build to QA email

---
 scripts/send_qa_email.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
scripts/send_qa_email.py +5 -1
index d113377..3d02797 100755
@@ -101,6 +101,9 @@ def send_qa_email():
     parser.add_argument('-r', '--release',
                         action='store',
                         help="The build/release 'name' for release purposes (optional)")
+    parser.add_argument('--url',
+                        action='store',
+                        help="The url for the build")
 
     args = parser.parse_args()
 
@@ -212,12 +215,13 @@ def send_qa_email():
     email += '''\n
     A build flagged for QA (%s) was completed on the autobuilder and is available at:\n\n
         %s\n\n
+    Build URL: %s\n
     Build hash information: \n
     %s
 
     \nThis is an automated message from the Yocto Project Autobuilder\nGit: git://git.yoctoproject.org/yocto-autobuilder2\nEmail: [email protected]\n
 
-    ''' % (args.release, args.publish_dir.replace(web_root, web_url), buildhashes)
+    ''' % (args.release, args.publish_dir.replace(web_root, web_url), args.url, buildhashes)
 
     # Store a copy of the email in case it doesn't reach the lists
     with open(os.path.join(args.publish_dir, "qa-email"), "wb") as qa_email:
Signature · 1 line
2.39.2