Also display builds
continuous-integration/drone/push Build is running Details

This commit is contained in:
nemunaire 2023-03-06 15:32:52 +01:00
parent 0836486e3e
commit 18225ca1d6
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ func declareAPIAuthWorksRoutes(router *gin.RouterGroup) {
for _, stage := range build.Stages {
for _, step := range stage.Steps {
if step.Name == "TP checks" || strings.HasPrefix(step.Name, "Test ") {
if step.Name == "TP checks" || strings.HasPrefix(step.Name, "Test ") || strings.HasPrefix(step.Name, "Build ") {
result, err := client.Logs(slug[0], slug[1], int(buildn), stage.Number, step.Number)
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())