diff mbox series

[yocto-autobuilder-helper] scripts/send-qa-email: Add URL of build to QA email

Message ID 20230926110359.2080439-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series [yocto-autobuilder-helper] scripts/send-qa-email: Add URL of build to QA email | expand

Commit Message

Richard Purdie Sept. 26, 2023, 11:03 a.m. UTC
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 scripts/send_qa_email.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index d113377..3d02797 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -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: richard.purdie@linuxfoundation.org\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: