Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
38708: roachtest: fix teamcity artifacts dir r=andreimatei a=andreimatei

The path we published in the teamcity artifacts collection directive was
wrong (included the test name twice) and so we weren't collecting any
artifacts.

Release note: None

Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
  • Loading branch information
craig[bot] and andreimatei committed Jul 5, 2019
2 parents a2f104c + 10f52ea commit a7926a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ func (r *testRunner) runTest(
if teamCity {
shout(ctx, l, stdout, "##teamcity[testFinished name='%s' flowId='%s']", t.Name(), t.Name())

artifactsGlobPath := filepath.Join(artifactsDir, "**")
escapedTestName := teamCityNameEscape(t.Name())
artifactsGlobPath := filepath.Join(artifactsDir, escapedTestName, "**")
artifactsSpec := fmt.Sprintf("%s => %s", artifactsGlobPath, escapedTestName)
shout(ctx, l, stdout, "##teamcity[publishArtifacts '%s']", artifactsSpec)
}
Expand Down

0 comments on commit a7926a6

Please sign in to comment.