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:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -26,14 +26,15 @@ pipeline {
|
|||||||
stage('Pull and Deploy') {
|
stage('Pull and Deploy') {
|
||||||
steps {
|
steps {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
usernamePassword(credentialsId: 'ssh-cred', usernameVariable: 'SSH_USER', passwordVariable: 'SSH_PASSWORD')
|
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'SSH_KEY', passphraseVariable: 'SSH_PASSPHRASE', 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.password = "${SSH_PASSWORD}"
|
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