Also accepts step key to be step name
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b1ad293810
commit
6fed13ee0e
@ -74,6 +74,15 @@ func (r *Repository) fetchRepoTests(build_number int, steps map[string]float64)
|
||||
continue
|
||||
}
|
||||
|
||||
if g, ok := steps[step.Name]; ok {
|
||||
log.Printf("Step %q (%d) in status %q", step.Name, step.Number, step.Status)
|
||||
// Give the point if it succeed
|
||||
if step.Status == "success" {
|
||||
grade += g
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
logs, err := client.Logs(tmp[0], tmp[1], build_number, stage.Number, step.Number)
|
||||
if err != nil {
|
||||
log.Printf("Unable to retrieve build logs %s/%s/%d/%d/%d: %s", tmp[0], tmp[1], build_number, stage.Number, step.Number, err.Error())
|
||||
|
Reference in New Issue
Block a user