builds_dir empty by default on Kubernetes executor
Summary
Using the Kubernetes executor, builds_dir is empty by default and builds are done in /
.
Steps to reproduce
- Start a CI job with the Kubernetes executor.
- Observe the repository
foo/bar
being cloned into/foo/bar
.
Actual behavior
A repository called foo/bar
is cloned into the directory /foo/bar
.
Expected behavior
The repository would be cloned into a subdirectory, such as /builds/foo/bar
.
Relevant logs and/or screenshots
Running with gitlab-ci-multi-runner 9.3.0 (3df822b)
on kube-gce-europe-west2-staging (6ed0dcd6)
Using Kubernetes namespace: gitlab-runner
Using Kubernetes executor with image quay.io/torchbox/fpm:centos-7 ...
Waiting for pod gitlab-runner/runner-6ed0dcd6-project-694-concurrent-15mw26 to be running, status is Pending
Waiting for pod gitlab-runner/runner-6ed0dcd6-project-694-concurrent-15mw26 to be running, status is Pending
Waiting for pod gitlab-runner/runner-6ed0dcd6-project-694-concurrent-15mw26 to be running, status is Pending
Waiting for pod gitlab-runner/runner-6ed0dcd6-project-694-concurrent-15mw26 to be running, status is Pending
Running on runner-6ed0dcd6-project-694-concurrent-15mw26 via kubernetes-runner-4050060546-1h44b...
Cloning into '/sysadmin/pkg/php7.1'...
Cloning repository...
Checking out 21c14de9 as master...
Skipping Git submodules setup
[...]
$ make SUFFIX=.el7 rpm
curl -sSL -ophp-7.1.9.tar.gz http://uk1.php.net/get/php-7.1.9.tar.gz/from/this/mirror
rm -rf /sysadmin/pkg/php7.1/root
rm -rf /sysadmin/pkg/php7.1/php-7.1.9
gzip -dc php-7.1.9.tar.gz | tar xf - -C /sysadmin/pkg/php7.1
+ cd /sysadmin/pkg/php7.1/php-7.1.9
Environment description
- On-premise GitLab CE 10.0.1
- gitlab-runner 9.3.0
- Kubernetes 1.7.5
- Docker 1.12.6 (1.12.6-55.gitc4618fb.el7.centos.x86_64)
- CentOS 7.4 (1708) host
Used GitLab Runner version
Version: 9.3.0
Git revision: 3df822b
Git branch: 9-3-stable
GO version: go1.7.5
Built: Thu, 22 Jun 2017 10:57:22 +0000
OS/Arch: linux/amd64