From cffc4799b5c561d69aaefcf870e304d228a15c0a Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Fri, 28 Jul 2023 15:48:59 +0000 Subject: [PATCH] teamcity-trigger: don't start a job for an empty target This makes no sense, so skip these cases. Closes: #107779 Closes: #107781 Epic: none Release note: None --- pkg/cmd/teamcity-trigger/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/teamcity-trigger/main.go b/pkg/cmd/teamcity-trigger/main.go index 9be9a5473050..4944020694a8 100644 --- a/pkg/cmd/teamcity-trigger/main.go +++ b/pkg/cmd/teamcity-trigger/main.go @@ -126,6 +126,9 @@ func runTC(queueBuild func(string, map[string]string)) { // Queue stress builds. One per configuration per test target. for _, testTarget := range strings.Split(string(targets), "\n") { testTarget = strings.TrimSpace(testTarget) + if testTarget == "" { + continue + } // By default, run each package for up to 100 iterations. maxRuns := 100 maxTime := getMaxTime(testTarget)