travis-build
travis-build copied to clipboard
Enhance ssh_known_hosts addon to accept pre-set host key
Improve ssh_known_hosts to accept hashes of the form:
host: foo.example.com
type: ssh-rsa
key: AAAAC3NzaC1lZDI1NTE5AAAAIOd6AtszfjD3nI7WvvnN+B39XsrjPzAMCByYO1hwUGf9
and add this to $HOME/.ssh/known_hosts instead of running
ssh-keyscan on the given host.
Resolves https://github.com/travis-ci/docs-travis-ci-com/issues/1649.
Test 1 (with a hash in an array): https://staging.travis-ci.org/BanzaiMan/travis_staging_test/builds/711451#L415 Test 2 (with a bare array): https://staging.travis-ci.org/BanzaiMan/travis_staging_test/builds/711453#L415
Docs are ready to be unreverted when this is merged in, over on https://github.com/travis-ci/docs-travis-ci-com/commit/517af1b8d6c204ee5c13654e09d6e8f8f77d908c :-/
Sorry again @BanzaiMan
@plaindocs No worries!