From 2bffb0171821ad33a7b6c52b4e742240f565f5d5 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 29 Jan 2021 14:35:06 +0100 Subject: [PATCH] Record CI service name on build --- bin/git/getCommitAndBranch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/git/getCommitAndBranch.js b/bin/git/getCommitAndBranch.js index 79859ce95..8862680e1 100644 --- a/bin/git/getCommitAndBranch.js +++ b/bin/git/getCommitAndBranch.js @@ -62,7 +62,7 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } = } } - const { isCi, prBranch, branch: ciBranch, commit: ciCommit, slug } = envCi(); + const { isCi, service: ciService, prBranch, branch: ciBranch, commit: ciCommit, slug } = envCi(); // On certain CI systems, a branch is not checked out // (instead a detached head is used for the commit). @@ -95,6 +95,7 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } = slug, isTravisPrBuild, fromCI, + ciService, })}` ); @@ -107,5 +108,6 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } = slug, isTravisPrBuild, fromCI, + ciService, }; }