From 32381de2afb638f4ef90489180cf007ce91d92ed Mon Sep 17 00:00:00 2001 From: NeoJRotary Date: Fri, 7 Sep 2018 19:43:31 +0900 Subject: [PATCH] add SHORT_SHA to build submit --- gcloud/gcloud.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gcloud/gcloud.go b/gcloud/gcloud.go index 29a77b0..d6121e6 100644 --- a/gcloud/gcloud.go +++ b/gcloud/gcloud.go @@ -91,6 +91,7 @@ func StartBuild(wg *sync.WaitGroup, repo *app.Repo, name, buildFile string) { subsList.Push("BRANCH_NAME=" + repo.Branch) subsList.Push("TAG_NAME=" + repo.Tag) subsList.Push("COMMIT_SHA=" + repo.AfterSHA) + subsList.Push("SHORT_SHA=" + repo.AfterSHA[:7]) subsList.Push("_GITHUB_INSTALLATION_ID=" + repo.InstallationID) subsList.Push("_GITHUB_REPOSITORY_NODE_ID=" + repo.RepositoryNodeID) subsList.Push("_GITHUB_CHECKRUN_ID=" + runID)