Skip to contentSkip to conversation

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

PATCH Richard Purdie 1 participant 1 message Sep 26, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 24 lines · Richard Purdie via lists.yoctoproject.org
---
 scripts/send_qa_email.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
scripts/send_qa_email.py +4 -0
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

scripts/send_qa_email.py def send_qa_email(): · line 227

Quoted 10 lines
scripts/send_qa_email.py +1 -1
     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:

I've also backported this to other branches for builds we actively use on the autobuilder so we get this benefit on all the QA emails and don't have to make the code inside buildbot conditional.

Cheers,

Richard