diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile index cd71f73..126ba5a 100644 --- a/jenkins/Jenkinsfile +++ b/jenkins/Jenkinsfile @@ -64,9 +64,10 @@ pipeline { node('master') { unstash 'webdist' unstash 'apidist' - sshPut remote: remote, from: 'tt_api', into: 'task_tracker/' - sshPut remote: remote, from: 'config.yml', into: 'task_tracker/' - sshPut remote: remote, from: 'schema.sql', into: 'task_tracker/' + sshCommand remote: remote, command: "rm -rf tt_api config.yml schema.sql webroot deploy.sh" + sshPut remote: remote, from: 'tt_api', into: 'task_tracker/tt_api' + sshPut remote: remote, from: 'config.yml', into: 'task_tracker/config.yml' + sshPut remote: remote, from: 'schema.sql', into: 'task_tracker/schema.sql' sshPut remote: remote, from: 'webroot/', into: 'task_tracker' sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'task_tracker/' sshCommand remote: remote, command: 'chmod +x task_tracker/deploy.sh && ./task_tracker/deploy.sh'