Skip to content

Commit

Permalink
Add GitLab CI commit env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfyda authored Sep 20, 2018
1 parent 112fa7b commit 6b08ceb
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 6b08ceb

Please sign in to comment.