Fix security warning for pem file

This commit is contained in:
Nana Janashia
2021-04-07 11:43:54 +02:00
parent 9573355ec3
commit 2b7f3b1471

2
Jenkinsfile vendored
View File

@@ -9,7 +9,7 @@ pipeline {
sh "scp -o StrictHostKeyChecking=no ansible/* root@167.99.136.157:/root" sh "scp -o StrictHostKeyChecking=no ansible/* root@167.99.136.157:/root"
withCredentials([sshUserPrivateKey(credentialsId: 'ec2-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]) { withCredentials([sshUserPrivateKey(credentialsId: 'ec2-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]) {
sh "scp ${keyfile} root@167.99.136.157:/root/ssh-key.pem" sh 'scp $keyfile root@167.99.136.157:/root/ssh-key.pem'
} }
} }
} }