Skip to content

Commit 7792db1

Browse files
committed
teamcity-trigger: don't start a job for an empty target
This makes no sense, so skip these cases. Closes: cockroachdb#107779 Closes: cockroachdb#107781 Epic: none Release note: None
1 parent 8beed2d commit 7792db1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/teamcity-trigger/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ func runTC(queueBuild func(string, map[string]string)) {
126126
// Queue stress builds. One per configuration per test target.
127127
for _, testTarget := range strings.Split(string(targets), "\n") {
128128
testTarget = strings.TrimSpace(testTarget)
129+
if testTarget == "" {
130+
continue
131+
}
129132
// By default, run each package for up to 100 iterations.
130133
maxRuns := 100
131134
maxTime := getMaxTime(testTarget)

0 commit comments

Comments
 (0)