1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00

attempt fix gitlab drone.sec issue

This commit is contained in:
Brad Rydzewski 2015-10-29 16:10:26 -07:00
parent 759c81fc4e
commit 525fd50f43

View File

@ -214,9 +214,15 @@ func (g *Gitlab) Script(user *model.User, repo *model.Repo, build *model.Build)
return nil, nil, err
}
cfg, err := client.RepoRawFile(id, build.Commit, ".drone.yml")
enc, _ := client.RepoRawFile(id, build.Commit, ".drone.sec")
return cfg, enc, err
out1, err := client.RepoRawFile(id, build.Commit, ".drone.yml")
if err != nil {
return nil, nil, err
}
out2, err := client.RepoRawFile(id, build.Commit, ".drone.sec")
if err != nil {
return out1, nil, err
}
return out1, out2, err
}
// NOTE Currently gitlab doesn't support status for commits and events,