work: Display checks steps of Check
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
c63a210ea7
commit
71910b9da8
2
works.go
2
works.go
@ -507,7 +507,7 @@ func declareAPIAuthWorksRoutes(router *gin.RouterGroup) {
|
|||||||
Status: step.Status,
|
Status: step.Status,
|
||||||
Logs: keeptLogs,
|
Logs: keeptLogs,
|
||||||
})
|
})
|
||||||
} else if step.Name == "Check steps" {
|
} else if strings.HasPrefix(step.Name, "Check") {
|
||||||
result, err := client.Logs(slug[0], slug[1], int(buildn), stage.Number, step.Number)
|
result, err := client.Logs(slug[0], slug[1], int(buildn), stage.Number, step.Number)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("An error occurs when retrieving logs from Drone (%s/%s/%d/%d/%d): %s", slug[0], slug[1], buildn, stage.Number, step.Number, err.Error())
|
log.Printf("An error occurs when retrieving logs from Drone (%s/%s/%d/%d/%d): %s", slug[0], slug[1], buildn, stage.Number, step.Number, err.Error())
|
||||||
|
Reference in New Issue
Block a user