diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-07-13 16:09:04 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-07-13 16:09:04 +0300 |
commit | bac2c47c8d2b3d609e369a5fbad12438f4efe09e (patch) | |
tree | 14a3054ed78536564deadd813e6425bce1855d2f /app | |
parent | a3c8525dc9a69d0e1048c114fd27317dcffc4221 (diff) | |
parent | 852ab8ae85d2204adb0ae5d17d40b68a5f78e887 (diff) |
Merge branch 'fix/gb/add-missing-before-sha-predefined-variable' into 'master'
Add missing `CI_COMMIT_BEFORE_SHA` predefined variable
Closes #43365
See merge request gitlab-org/gitlab-ce!20594
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 d8ddb4bc667..db86400128c 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -653,6 +653,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_BEFORE_SHA', value: before_sha) variables.append(key: 'CI_COMMIT_REF_NAME', value: ref) variables.append(key: 'CI_COMMIT_REF_SLUG', value: ref_slug) variables.append(key: "CI_COMMIT_TAG", value: ref) if tag? |