summaryrefslogtreecommitdiff
path: root/scripts/trigger-build.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-01 00:10:27 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-01 00:10:27 +0000
commita149dffe2f221544ce239658e1e0fad06a2726a2 (patch)
tree87b71776b0ce5084235b0a26c2acf0fa1c910eee /scripts/trigger-build.rb
parent16776d7f4fdb0cef173fcebb189c53b5bc0ecd39 (diff)
downloadgitlab-ce-a149dffe2f221544ce239658e1e0fad06a2726a2.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/trigger-build.rb')
-rwxr-xr-xscripts/trigger-build.rb15
1 files changed, 1 insertions, 14 deletions
diff --git a/scripts/trigger-build.rb b/scripts/trigger-build.rb
index 1167774f500..897ca9f473e 100755
--- a/scripts/trigger-build.rb
+++ b/scripts/trigger-build.rb
@@ -160,8 +160,6 @@ module Trigger
end
class CNG < Base
- ASSETS_HASH = "cached-assets-hash.txt"
-
def variables
# Delete variables that aren't useful when using native triggers.
super.tap do |hash|
@@ -189,7 +187,7 @@ module Trigger
"TRIGGER_BRANCH" => ref,
"GITLAB_VERSION" => ENV['CI_COMMIT_SHA'],
"GITLAB_TAG" => ENV['CI_COMMIT_TAG'], # Always set a value, even an empty string, so that the downstream pipeline can correctly check it.
- "GITLAB_ASSETS_TAG" => assets_image_tag,
+ "GITLAB_ASSETS_TAG" => ENV['CI_COMMIT_TAG'] ? ENV['CI_COMMIT_REF_NAME'] : ENV['CI_COMMIT_SHA'],
"FORCE_RAILS_IMAGE_BUILDS" => 'true',
"CE_PIPELINE" => Trigger.ee? ? nil : "true", # Always set a value, even an empty string, so that the downstream pipeline can correctly check it.
"EE_PIPELINE" => Trigger.ee? ? "true" : nil # Always set a value, even an empty string, so that the downstream pipeline can correctly check it.
@@ -206,17 +204,6 @@ module Trigger
raw_version
end
end
-
- # We're doing the same operation in `scripts/utils.sh` in the `assets_image_tag` function.
- def assets_image_tag
- if ENV['CI_COMMIT_TAG']
- ENV['CI_COMMIT_REF_NAME']
- elsif File.exist?(ASSETS_HASH)
- "assets-hash-#{File.read(ASSETS_HASH).strip[0...10]}"
- else
- ENV['CI_COMMIT_SHA']
- end
- end
end
class Docs < Base