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:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -1,7 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
environment {
|
||||||
DOCKERHUB_CREDENTIALS=credentials('dockerhub-cred')
|
DOCKERHUB_CREDENTIALS = credentials('dockerhub-cred')
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
@@ -44,10 +44,10 @@ pipeline {
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
// Transfer the script file to the remote host
|
// Transfer the script file to the remote host
|
||||||
sshPut remote: remote, from: 'run-pull-deploy.sh', into: 'run-pull-deploy.sh'
|
sshPut remote: remote, from: 'run-pull-deploy.sh', into: '/path/to/remote/directory/run-pull-deploy.sh'
|
||||||
|
|
||||||
// Execute the script file on the remote host
|
// Execute the script file on the remote host
|
||||||
sshCommand remote: remote, command: 'chmod +x run-pull-deploy.sh && ./run-pull-deploy.sh'
|
sshCommand remote: remote, command: 'chmod +x /path/to/remote/directory/run-pull-deploy.sh && /path/to/remote/directory/run-pull-deploy.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user