diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-07-05 23:19:54 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-07-05 23:19:54 +0900 |
commit | 650f598dcf3b7da5e74758338de84e3957b018bd (patch) | |
tree | 4bbf77a1086a3e041aa8a59abbeecd96a1fd5f65 | |
parent | 96637cd087f18c997957168aa8ce8fef5501e5de (diff) | |
download | gitlab-ce-extend-junit-keyword-ce-with-gitlab-ci-yml-support.tar.gz |
Fix presenterextend-junit-keyword-ce-with-gitlab-ci-yml-support
-rw-r--r-- | app/models/ci/build.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index c24bf787272..6735ea23830 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -532,13 +532,17 @@ module Ci end def artifacts_archive - options[:artifacts].merge(artifact_type: 'archive', artifact_format: 'zip') + { + name: options[:artifacts][:name], + paths: options[:artifacts][:paths], + artifact_type: 'archive', + artifact_format: 'zip', + expire_in: options[:artifacts][:expire_in] + } end def artifacts_reports - reports = [] - reports << artifacts_junit if options.dig(:artifacts, :reports, :junit) - reports + artifacts_junit if options.dig(:artifacts, :reports, :junit) end def artifacts_junit |