diff --git a/Jenkinsfile b/Jenkinsfile index 4e33bbb..16779d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } }