Also display "Clean archive" and "Has xxx"
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
522fe05e99
commit
e90d55c07e
2
works.go
2
works.go
@ -467,7 +467,7 @@ func declareAPIAuthWorksRoutes(router *gin.RouterGroup) {
|
|||||||
|
|
||||||
for _, stage := range build.Stages {
|
for _, stage := range build.Stages {
|
||||||
for _, step := range stage.Steps {
|
for _, step := range stage.Steps {
|
||||||
if step.Name == "TP checks" || strings.HasPrefix(step.Name, "Test ") || strings.HasPrefix(step.Name, "Build ") {
|
if step.Name == "TP checks" || step.Name == "Clean archive" || strings.HasPrefix(step.Name, "Test ") || strings.HasPrefix(step.Name, "Has ") || strings.HasPrefix(step.Name, "Build ") {
|
||||||
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