fix #108 - ensure container names are unique for matrix runs

This commit is contained in:
Casey Lee
2020-03-04 16:24:14 -08:00
parent 4f84be12e3
commit 59b9b8e97a
3 changed files with 12 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ func (runner *runnerImpl) NewPlanExecutor(plan *model.Plan) common.Executor {
for i, matrix := range matrixes {
rc := runner.newRunContext(run, matrix)
if len(matrix) > 1 {
if len(matrixes) > 1 {
rc.Name = fmt.Sprintf("%s-%d", rc.Name, i+1)
}
if len(rc.String()) > maxJobNameLen {