diff options
author | Jason Lenny <jlenny@gitlab.com> | 2018-12-17 20:06:53 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-12-17 20:06:53 +0300 |
commit | 5040ac68d853ab3fc9bd993140bb02d750b3a655 (patch) | |
tree | 13cb5186718980aa0af7e689d080027f79951683 /app | |
parent | d82b6d120eb54e389d775223b0c1615332143a42 (diff) |
Add new predefined variable CI_COMMIT_SHORT_SHA
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/build.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index e2917049902..16a72c680fa 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -840,6 +840,7 @@ module Ci variables.append(key: 'CI_JOB_NAME', value: name) variables.append(key: 'CI_JOB_STAGE', value: stage) variables.append(key: 'CI_COMMIT_SHA', value: sha) + variables.append(key: 'CI_COMMIT_SHORT_SHA', value: short_sha) variables.append(key: 'CI_COMMIT_BEFORE_SHA', value: before_sha) variables.append(key: 'CI_COMMIT_REF_NAME', value: ref) variables.append(key: 'CI_COMMIT_REF_SLUG', value: ref_slug) |