Skip to content
Snippets Groups Projects
Unverified Commit b597af0d authored by Andrejs Cunskis's avatar Andrejs Cunskis
Browse files

Do not create volume when knapsack path is empty

parent 41562d25
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -16,10 +16,12 @@ module Gitlab
@docker = Docker::Engine.new(stream_output: true) # stream test output directly instead of through logger
@env = {}
@volumes = {}
@default_volumes = {
'/var/run/docker.sock' => '/var/run/docker.sock',
Runtime::Env.qa_knapsack_report_path => File.join(Docker::Volumes::QA_CONTAINER_WORKDIR, 'knapsack')
}.compact
@default_volumes = { '/var/run/docker.sock' => '/var/run/docker.sock' }
return if Runtime::Env.qa_knapsack_report_path.blank?
@default_volumes[Runtime::Env.qa_knapsack_report_path] = File.join(
Docker::Volumes::QA_CONTAINER_WORKDIR, 'knapsack'
)
end
 
def perform
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment