From 28c068c1b079c67953c1f3586141f7cecb3276c8 Mon Sep 17 00:00:00 2001 From: sophia-guo Date: Tue, 30 Jul 2024 20:14:54 -0400 Subject: [PATCH] Github issue attachment url format changed (#5464) The url format is updated to https://github.com/user-attachments/files/ Signed-off-by: Sophia Guo --- buildenv/jenkins/tapVerification/TapCollection.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildenv/jenkins/tapVerification/TapCollection.groovy b/buildenv/jenkins/tapVerification/TapCollection.groovy index c118c93df4..f03f9d7aad 100644 --- a/buildenv/jenkins/tapVerification/TapCollection.groovy +++ b/buildenv/jenkins/tapVerification/TapCollection.groovy @@ -33,7 +33,8 @@ pipeline { // Function to download attachments from text def downloadAttachments = { text -> text.split('\r\n').each { line -> - if (line.contains("https://github.com/${RELEASE_TRIAGE_REPO}/files/") && line.endsWith(')')) { + /* groovylint-disable-next-line LineLength */ + if ((line.contains("https://github.com/${RELEASE_TRIAGE_REPO}/files/") || line.contains('https://github.com/user-attachments/files/')) && line.endsWith(')')) { def url = line.substring(line.indexOf('(https') + 1, line.lastIndexOf(')')) def filename = url.split('/').last() sh "curl -L -o ${tapsDir}/${filename} ${url}"