Skip to content

Commit

Permalink
teamcity-trigger: don't start a job for an empty target
Browse files Browse the repository at this point in the history
This makes no sense, so skip these cases.

Closes: #107779
Closes: #107781

Epic: none
Release note: None
  • Loading branch information
rickystewart committed Jul 31, 2023
1 parent b575a64 commit 59547fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/teamcity-trigger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 59547fb

Please sign in to comment.