mirror of
https://github.com/ghndrx/docker-test-image.git
synced 2026-02-10 06:45:05 +00:00
s
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -26,7 +26,7 @@ pipeline {
|
|||||||
stage('Pull and Deploy') {
|
stage('Pull and Deploy') {
|
||||||
steps {
|
steps {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'SSH_KEY', passphraseVariable: 'SSH_PASSPHRASE', usernameVariable: 'SSH_USER')
|
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'SSH_KEY', usernameVariable: 'SSH_USER')
|
||||||
]) {
|
]) {
|
||||||
script {
|
script {
|
||||||
def remote = [:]
|
def remote = [:]
|
||||||
@@ -34,7 +34,6 @@ pipeline {
|
|||||||
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 = "${SSH_KEY}"
|
||||||
remote.passphrase = "${SSH_PASSPHRASE}"
|
|
||||||
remote.allowAnyHosts = true
|
remote.allowAnyHosts = true
|
||||||
|
|
||||||
writeFile file: 'run-pull-deploy.sh', text: '''
|
writeFile file: 'run-pull-deploy.sh', text: '''
|
||||||
|
|||||||
Reference in New Issue
Block a user