diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-31 18:06:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-31 18:06:41 +0300 |
commit | 083d64c6468a070ae7b0b406ead8d87da27d1d22 (patch) | |
tree | ba92a9b5b6418f805ede9ef05b371d82d2c1d27d /qa | |
parent | 0be510a49f6e4f8e27b19b707fd1dac61571f78f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/runtime/fixtures.rb | 2 | ||||
-rw-r--r-- | qa/qa/service/docker_run/maven.rb | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/qa/qa/runtime/fixtures.rb b/qa/qa/runtime/fixtures.rb index f91218ea0b5..ed051b18a9a 100644 --- a/qa/qa/runtime/fixtures.rb +++ b/qa/qa/runtime/fixtures.rb @@ -30,7 +30,7 @@ module QA yield dir ensure - FileUtils.remove_entry(dir) + FileUtils.remove_entry(dir, true) end private diff --git a/qa/qa/service/docker_run/maven.rb b/qa/qa/service/docker_run/maven.rb index 435a68776d9..8bdea20963d 100644 --- a/qa/qa/service/docker_run/maven.rb +++ b/qa/qa/service/docker_run/maven.rb @@ -27,10 +27,16 @@ module QA --hostname #{host_name} --name #{@name} --volume #{@volume_host_path}:/home/maven - #{@image} sh -c "sleep 60" + #{@image} sh -c "sleep 300" CMD shell "docker cp #{@volume_host_path}/. #{@name}:/home/maven" shell "docker exec -t #{@name} sh -c 'cd /home/maven && mvn deploy -s settings.xml'" + + # Stop the container when `mvn deploy` is finished otherwise + # the sleeping container will hold onto the files in @volume_host_path, + # which causes problems when they're created in a tmp dir + # that we want to delete + shell "docker stop #{@name}" end end end |