This commit is contained in:
Gregory Hendrickson
2023-06-09 16:07:16 -07:00
parent 5bdc3b31a6
commit 2e73f86140

4
Jenkinsfile vendored
View File

@@ -27,14 +27,14 @@ pipeline {
stage('Pull and Deploy') {
steps {
withCredentials([
sshUserPrivateKey(credentialsId: 'ssh-cred', identity: 'SSH_KEY', usernameVariable: 'SSH_USER')
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'SSH_USER')
]) {
script {
def remote = [:]
remote.name = 'ubuntu-kc'
remote.host = '172.16.11.90'
remote.user = "${SSH_USER}"
remote.keyFile = "${SSH_KEY}"
remote.keyFile = "${IDENTITY}"
remote.allowAnyHosts = true
writeFile file: 'run-pull-deploy.sh', text: '''