From 6b08cebbb5089683e222322012499ff181be5e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Cort=C3=AAs?= Date: Thu, 20 Sep 2018 20:00:08 +0100 Subject: [PATCH] Add GitLab CI commit env variable --- src/main/scala/com/codacy/rules/ConfigurationRules.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/codacy/rules/ConfigurationRules.scala b/src/main/scala/com/codacy/rules/ConfigurationRules.scala index 2a89e08c..878838f9 100644 --- a/src/main/scala/com/codacy/rules/ConfigurationRules.scala +++ b/src/main/scala/com/codacy/rules/ConfigurationRules.scala @@ -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) }