Skip to content

Commit

Permalink
Record CI service name on build
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Jan 29, 2021
1 parent 5b67640 commit 2bffb01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/git/getCommitAndBranch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -95,6 +95,7 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } =
slug,
isTravisPrBuild,
fromCI,
ciService,
})}`
);

Expand All @@ -107,5 +108,6 @@ export async function getCommitAndBranch({ branchName, patchBaseRef, ci, log } =
slug,
isTravisPrBuild,
fromCI,
ciService,
};
}

0 comments on commit 2bffb01

Please sign in to comment.