Travis: Permission denied – Could not read from remote repository

Автор: | 23/06/2016
 

travis_logoПосле добавления нового репозитория в Travis – билд падает с ошибкой:

...
3.34s$ git clone --depth=50 --branch=develop [email protected]:account/repository.git account/repository
Cloning into 'account/repository'...
Warning: Permanently added the RSA host key for IP address '192.***.***.121' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The command "eval git clone --depth=50 --branch=develop [email protected]:account/repository.git account/repository" failed. Retrying, 2 of 3.
...

Проверяем.

Переходим в репозиторий > Settings > Deploy keys:

travis_git_permission_1

Возвращаемся к Travis, и деактивируем/активируем репозиторий:

travis_git_permission_2

Проверяем еще раз ключи:

travis_git_permission_3

Перезапускаем билд – готово:

...
$ git clone --depth=50 --branch=develop [email protected]:account/repository.git account/repository
Cloning into 'account/repository'...
Warning: Permanently added the RSA host key for IP address '192.***.***.121' to the list of known hosts.
remote: Counting objects: 1438, done.
remote: Total 1438 (delta 0), reused 0 (delta 0), pack-reused 1438
Receiving objects: 100% (1438/1438), 160.40 MiB | 73.82 MiB/s, done.
Resolving deltas: 100% (406/406), done.
Checking connectivity... done.
...