Fix secret value leak warning

This commit is contained in:
Nana Janashia
2021-04-03 18:29:22 +02:00
parent d8dda2f0ce
commit 3c9afc11b1

View File

@@ -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'
}
}
}