Skip to content

Commit

Permalink
Merge pull request #98 from codacy/mrfyda-patch-1
Browse files Browse the repository at this point in the history
Add GitLab CI commit env variable
  • Loading branch information
rtfpessoa authored Sep 20, 2018
2 parents 112fa7b + 6b08ceb commit 8669c9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/com/codacy/rules/ConfigurationRules.scala
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ class ConfigurationRules(cmdConfig: CommandConfiguration) {
getNonEmptyEnv("CIRCLE_SHA1") orElse
getNonEmptyEnv("CI_COMMIT_ID") orElse
getNonEmptyEnv("WERCKER_GIT_COMMIT") orElse
getNonEmptyEnv("CODEBUILD_RESOLVED_SOURCE_VERSION")
getNonEmptyEnv("CODEBUILD_RESOLVED_SOURCE_VERSION") orElse
getNonEmptyEnv("CI_COMMIT_SHA")
.filter(_.trim.nonEmpty)
}

Expand Down

0 comments on commit 8669c9a

Please sign in to comment.