summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-03-06 18:41:23 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-03-06 18:41:23 +0000
commitee2cfd0f5a30582bd8588fe8a0196dfb887f3a0a (patch)
tree40fb6b279e5626b987ce53914b5046e301272910 /lib
parentc5160c11c0364bb577d7b4ef56784fc709b301d4 (diff)
parent0b49e8e646e114d213c15e9fc3e360e644fcd5b3 (diff)
downloadgitlab-ce-ee2cfd0f5a30582bd8588fe8a0196dfb887f3a0a.tar.gz
Merge branch 'sha256-checksum-for-trace' into 'master'
Set sha256 checksum when archiving traces Closes #43940 See merge request gitlab-org/gitlab-ce!17570
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/trace.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/ci/trace.rb b/lib/gitlab/ci/trace.rb
index c5356af2f02..cedf4171ab1 100644
--- a/lib/gitlab/ci/trace.rb
+++ b/lib/gitlab/ci/trace.rb
@@ -137,7 +137,8 @@ module Gitlab
job.create_job_artifacts_trace!(
project: job.project,
file_type: :trace,
- file: stream)
+ file: stream,
+ file_sha256: Digest::SHA256.file(path).hexdigest)
end
end