diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-04-20 23:22:58 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-04-20 23:22:58 +0800 |
commit | 5dfab4ce27cbcfed3c0210b5733bb30fc6a32851 (patch) | |
tree | b2b1210b96bd34a61d9e6b5925d3695fd0bf1a0b /qa/qa/specs/features/project | |
parent | fb758c75f200f1dbde80258aefb17cfd471f8749 (diff) | |
download | gitlab-ce-5dfab4ce27cbcfed3c0210b5733bb30fc6a32851.tar.gz |
Unify the use of repository_location
Diffstat (limited to 'qa/qa/specs/features/project')
-rw-r--r-- | qa/qa/specs/features/project/deploy_key_clone_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/qa/specs/features/project/deploy_key_clone_spec.rb b/qa/qa/specs/features/project/deploy_key_clone_spec.rb index 42588d1181d..98ea86bf75e 100644 --- a/qa/qa/specs/features/project/deploy_key_clone_spec.rb +++ b/qa/qa/specs/features/project/deploy_key_clone_spec.rb @@ -16,7 +16,7 @@ module QA resource.name = 'deploy-key-clone-project' end - @repository_uri = @project.repository_ssh_uri + @repository_location = @project.repository_ssh_location Factory::Resource::Runner.fabricate! do |resource| resource.project = @project @@ -60,11 +60,11 @@ module QA cat-config: script: - mkdir -p ~/.ssh - - ssh-keyscan -p #{@repository_uri.port} #{@repository_uri.host} >> ~/.ssh/known_hosts + - ssh-keyscan -p #{@repository_location.port} #{@repository_location.host} >> ~/.ssh/known_hosts - eval $(ssh-agent -s) - ssh-add -D - echo "$#{deploy_key_name}" | ssh-add - - - git clone #{@repository_uri.git_uri} + - git clone #{@repository_location.git_uri} - cd #{@project.name} - git checkout #{deploy_key_name} - sha1sum .gitlab-ci.yml |