diff --git a/Jenkinsfile-v1 b/Jenkinsfile-v1 index e8191a9..fdb8ec2 100644 --- a/Jenkinsfile-v1 +++ b/Jenkinsfile-v1 @@ -14,7 +14,7 @@ pipeline { echo "copying ssh keys for ec2 instances" withCredentials([sshUserPrivateKey(credentialsId: 'ec2-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]) { - sh "scp ${keyfile} root@${ANSIBLE_SERVER}:/root/key.pem" + sh 'scp $keyfile root@$ANSIBLE_SERVER:/root/key.pem' } } }