Skip to content

Commit

Permalink
Github issue attachment url format changed (adoptium#5464)
Browse files Browse the repository at this point in the history
The url format is updated to https://github.com/user-attachments/files/

Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed Jul 31, 2024
1 parent 11e5175 commit 28c068c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildenv/jenkins/tapVerification/TapCollection.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 28c068c

Please sign in to comment.