summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-07-05 23:19:54 +0900
committerShinya Maeda <shinya@gitlab.com>2018-07-05 23:19:54 +0900
commit650f598dcf3b7da5e74758338de84e3957b018bd (patch)
tree4bbf77a1086a3e041aa8a59abbeecd96a1fd5f65
parent96637cd087f18c997957168aa8ce8fef5501e5de (diff)
downloadgitlab-ce-extend-junit-keyword-ce-with-gitlab-ci-yml-support.tar.gz
-rw-r--r--app/models/ci/build.rb12
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