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