2017-01-12 32 views
1

我有我的網站託管在數字海洋和我的回購gitlab。我的Digital Ocean Server上沒有安裝gitlab實例。我只是使用.gitlab-ci.yml文件。CI與Gitlab和數字海洋

在我的CI腳本中,我將數字海洋CD放入我的項目中,並嘗試提取最新的代碼。

我還在數字海洋服務器上生成了一個ssh密鑰,並將它添加到了我在Gitlab上的ssh-keys。

我不確定是否有防火牆,我無法過去或什麼。

不幸的是,它錯誤地出現了這個錯誤。

Running with gitlab-ci-multi-runner 1.9.0 (82714ae) 
Using Docker executor with image ruby:2.1 ... 
Pulling docker image ruby:2.1 ... 
Running on runner-4e4528ca-project-1209495-concurrent-0 via runner-  4e4528ca-machine-1484021348-29523945-digital-ocean-4gb... 
Cloning repository... 
Cloning into '/builds/Rchampin/ryan_the_developer_django'... 
Checking out b3783fbf as master... 
$ ssh [email protected] 
Pseudo-terminal will not be allocated because stdin is not a terminal. 

Host key verification failed. 

ERROR: Build failed: exit code 1 

這是我的CI腳本。

before_script: 
    - ssh [email protected] 
    - cd /home/rchampin/ryan_the_developer_django 

pull: 
    script: 
    - git pull 

回答

0

你有一些optinos在this question

ssh -t -t 
# or 
ssh -T 

嘗試這應該避免請求僞終端。