From 283f948e355a43ed601d86d4b1f206cdb8189e59 Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 15:34:22 -0700 Subject: [PATCH] s --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3dc697f..4ec1b02 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,13 +41,15 @@ pipeline { docker run -d --name docker-test-image aisthanestha/docker-test-image:latest ''' - node('any') { - sshScript remote: remote, script: 'run-pull-deploy.sh' - } + // Transfer the script file to the remote host + 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 { always {