Fix security warning for pem file
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -9,7 +9,7 @@ pipeline {
|
||||
sh "scp -o StrictHostKeyChecking=no ansible/* root@167.99.136.157:/root"
|
||||
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user