mirror of
https://github.com/ghndrx/docker-test-image.git
synced 2026-02-10 14:55:14 +00:00
s
s
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -26,15 +26,15 @@ pipeline {
|
|||||||
|
|
||||||
stage('Pull and Deploy') {
|
stage('Pull and Deploy') {
|
||||||
steps {
|
steps {
|
||||||
|
def remote [:]
|
||||||
|
remote.name = 'ubuntu-kc'
|
||||||
|
remote.host = '172.16.11.90'
|
||||||
|
remote.allowAnyHosts = true
|
||||||
withCredentials([
|
withCredentials([
|
||||||
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'userName')
|
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'userName')
|
||||||
]) {
|
]) {
|
||||||
def remote [:]
|
|
||||||
remote.name = 'ubuntu-kc'
|
|
||||||
remote.host = '172.16.11.90'
|
|
||||||
remote.user = userName
|
remote.user = userName
|
||||||
remote.identityFile = identity
|
remote.identityFile = identity
|
||||||
remote.allowAnyHosts = true
|
|
||||||
|
|
||||||
writeFile file: 'run-pull-deploy.sh', text: '''
|
writeFile file: 'run-pull-deploy.sh', text: '''
|
||||||
docker pull aisthanestha/docker-test-image:latest
|
docker pull aisthanestha/docker-test-image:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user