Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit df5c82e

Browse files
committed
Merge pull request #15 from codacy/env-var-commit
Add environment variable to override git commit
2 parents 1e36749 + 514a68b commit df5c82e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/codacy/CodacyCoveragePlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ object CodacyCoveragePlugin extends AutoPlugin {
4545
codacyToken: Option[String], codacyApiBaseUrl: Option[String]): Unit = {
4646
implicit val logger: Logger = state.log
4747

48-
FileHelper.withTokenAndCommit(codacyToken) {
48+
FileHelper.withTokenAndCommit(codacyToken, commitUUID = sys.env.get("CI_COMMIT")) {
4949
case (projectToken, commitUUID) =>
5050

5151
val reader = new CoberturaParser(Language.Scala, rootProjectDir, coberturaFile)

0 commit comments

Comments
 (0)