jenkinsfile - post remove key
This commit is contained in:
1 parent
36b55ffc01
commit
babf9eba9a
1 file changed
+4
-1
@@ -153,7 +153,10 @@ pipeline {
|
|||||||
if [ -f /root/.hushlogin ]; then
|
if [ -f /root/.hushlogin ]; then
|
||||||
echo ==MC== Re-enabling MOTD
|
echo ==MC== Re-enabling MOTD
|
||||||
rm /root/.hushlogin
|
rm /root/.hushlogin
|
||||||
fi
|
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