Follow extract config from atsebay.t-worker
This commit is contained in:
parent
2ccf2057de
commit
92f016f648
@ -220,7 +220,7 @@ func declareAPIAuthRepositoriesRoutes(router *gin.RouterGroup) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := drone.NewClient(droneEndpoint, droneConfig)
|
client := drone.NewClient(droneEndpoint, droneConfig)
|
||||||
result, err := client.Logs(tmp[0], tmp[1], nbuild, 1, 2)
|
result, err := client.Logs(tmp[0], tmp[1], nbuild, 1, 3)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.AbortWithStatusJSON(http.StatusNotFound, gin.H{"errmsg": "Unable to retrieve logs."})
|
c.AbortWithStatusJSON(http.StatusNotFound, gin.H{"errmsg": "Unable to retrieve logs."})
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user