install the generated known_host file under /etc

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <>
parent 79e39b91
......@@ -623,6 +623,7 @@ else
sudo -u jenkins cp jenkins-home/ /var/lib/jenkins/.ssh/config
nodes/gen_ssh_config | sudo -u jenkins tee -a /var/lib/jenkins/.ssh/config > /dev/null
nodes/gen_known_host_file | sudo tee /etc/ssh/ssh_known_hosts > /dev/null
explain "scripts and configurations for jenkins updated."
if [ "$HOSTNAME" = "jenkins" ] ; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment