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

Commit 514a68b

Browse files
committed
Add environment variable to override git commit
1 parent 1e36749 commit 514a68b

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)