Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record CI service name on build #269

Merged
merged 2 commits into from Feb 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion bin/git/getCommitAndBranch.js
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,
};
}