feat(cron): added debug log on build_repo failure
ci/woodpecker/push/build_experimental unknown status Details
ci/woodpecker/push/lint unknown status Details
ci/woodpecker/push/test unknown status Details
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/deploy Pipeline was successful Details

pull/154/head
Jef Roosens 2022-05-02 07:50:44 +02:00
parent c5161cac37
commit 03318586ed
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ fn (mut d Daemon) run_build(build_index int, sb ScheduledBuild) {
// 0 means success, 1 means failure
mut status := 0
build.build_repo(d.address, d.api_key, d.builder_images.last(), &sb.repo) or { status = 1 }
build.build_repo(d.address, d.api_key, d.builder_images.last(), &sb.repo) or {
d.ldebug('build_repo error: $err.msg()')
status = 1
}
if status == 0 {
d.linfo('finished build: $sb.repo.url $sb.repo.branch')