From 1c5bcbaff8db42ac77d889ab01c5e67e86434e14 Mon Sep 17 00:00:00 2001 From: Soren Mathiasen Date: Thu, 5 Oct 2017 15:32:49 +0200 Subject: [PATCH] Propagate the step status to the build --- README.md | 1 - main.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e3143e3..831402d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,6 @@ __DO NOT USE IN PRODUCTION__ or well that's up to you I guess. Build system that schedules build in a pod in a Kubernetes cluster. That way we can leverage Kubernetes for scaling and reliability. - # Screenshot ![Seneferu main screen](docs/seneferu.png "Main screen") diff --git a/main.go b/main.go index 535d710..99f2c7c 100644 --- a/main.go +++ b/main.go @@ -332,6 +332,8 @@ func executeBuild(kubectl *kubernetes.Clientset, build *Build, repo *Repo) error if step.Name == b.Name { exitCode, _ := getExitCode(kubectl, b, buildUUID) if exitCode > 0 { + build.Status = "Failed" + build.Success = false step.Status = "Failed" } step.ExitCode = exitCode -- GitLab