mirror of
https://github.com/ghndrx/docker-test-image.git
synced 2026-02-10 14:55:14 +00:00
s
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -41,13 +41,15 @@ pipeline {
|
|||||||
docker run -d --name docker-test-image aisthanestha/docker-test-image:latest
|
docker run -d --name docker-test-image aisthanestha/docker-test-image:latest
|
||||||
'''
|
'''
|
||||||
|
|
||||||
node('any') {
|
// Transfer the script file to the remote host
|
||||||
sshScript remote: remote, script: 'run-pull-deploy.sh'
|
sshPut remote: remote, from: 'run-pull-deploy.sh', into: 'run-pull-deploy.sh'
|
||||||
}
|
|
||||||
|
// Execute the script file on the remote host
|
||||||
|
sshCommand remote: remote, command: 'chmod +x run-pull-deploy.sh && ./run-pull-deploy.sh'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
|||||||
Reference in New Issue
Block a user