From 257f081c84d65eab1f3c5606a544cafecb739b51 Mon Sep 17 00:00:00 2001 From: Hamideh Amini Khezrabad Date: Thu, 23 Apr 2026 16:03:23 +0200 Subject: [PATCH] Support Noble stemcell URLs in detect-stemcell-bump task Noble stemcells dropped the -go_agent suffix from their URLs. Update the regex to make it optional so both jammy and noble URLs are handled. --- tasks/detect-stemcell-bump/concourseio/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/detect-stemcell-bump/concourseio/runner.go b/tasks/detect-stemcell-bump/concourseio/runner.go index 93c1948e2..ec619e826 100644 --- a/tasks/detect-stemcell-bump/concourseio/runner.go +++ b/tasks/detect-stemcell-bump/concourseio/runner.go @@ -149,7 +149,7 @@ func buildSubDir(buildDir, subDir string) (string, error) { } func parseOSfromURL(url string) (string, error) { - versionRegex := regexp.MustCompile(`(ubuntu-.*)-go_agent.tgz`) + versionRegex := regexp.MustCompile(`(ubuntu-[a-z]+(?:-[a-z]+)*?)(?:-go_agent)?\.tgz`) allMatches := versionRegex.FindAllStringSubmatch(url, 1)