jenkinsfile - post remove key
This commit is contained in:
1 parent
36b55ffc01
commit
babf9eba9a
1 file changed
+3
@@ -155,6 +155,9 @@ pipeline {
|
||||
rm /root/.hushlogin
|
||||
fi
|
||||
|
||||
echo ==MC== Clearing ssh key for this host
|
||||
ssh-keygen -f '/root/.ssh/known_hosts' -R '${params.host_ip}'
|
||||
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user