.gitlab-ci.yml file not able to perform ssh-add

7/11/2018

I am not able to figure out how to solve this problem. please take a look. $ which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) /usr/bin/ssh-agent $ eval $(ssh-agent -s) Agent pid 11 $ ssh-add <(echo "$SSH_PRIVATE_KEY") Enter passphrase for /dev/fd/63: ERROR: Job failed: exit code 1 I am very confused about this and not able to figure out what to do next. Can anyone help me with this? I am trying to use the following link to run my yml file: https://gitlab.com/memosa/meteor-gitlab-ci/blob/master/.gitlab-ci.yml

-- Takhi Abed
gitlab
gitlab-ci
kubernetes
ssh
ssh-keys

1 Answer

7/11/2018

Isn't your private key password protected ? It would explain why it can't be added without providing passphrase. If so, use decrypted private key in your variable.

-- Radek 'Goblin' Pieczonka
Source: StackOverflow