diff --git a/Jenkinsfile b/Jenkinsfile index 006e9db..bc4a799 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,7 +41,9 @@ pipeline{ stage('Remote SSH') { steps { sshCommand remote: remote, command: ''' - bash test.sh; + export WORKSPACE="~/jenkins/workspace/ant-http" + cd $WORKSPACE + bash test.sh ''' sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done" }