Deploy fix attempt

This commit is contained in:
simon987
2019-04-04 21:21:32 -04:00
parent 0f1c0df91a
commit 310f343423
4 changed files with 9 additions and 14 deletions

7
jenkins/Jenkinsfile vendored
View File

@@ -16,11 +16,8 @@ pipeline {
stage('Deploy') {
steps {
sh 'echo $ODDB_CONFIG > config.py'
sshCommand remote: remote, command: "cd od-database && rm -rf env fold_to_ascii search static task_tracker_drone templates ws_bucket_client"
sh 'tar -czf env.tar.gz env'
sshPut remote: remote, from: 'env.tar.gz', into: 'od-database'
sshCommand remote: remote, command: 'tar -xzf od-database/env.tar.gz -C od-database && rm od-database/env.tar.gz'
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'od-database'
sshCommand remote: remote, command: "cd od-database && rm -rf env fold_to_ascii search static task_tracker_drone templates ws_bucket_client *.py deploy.sh"
sshPut remote: remote, from: 'requirements.txt', into: 'od-database'
sshPut remote: remote, from: 'fold_to_ascii', into: 'od-database'
sshPut remote: remote, from: 'search', into: 'od-database'
sshPut remote: remote, from: 'static', into: 'od-database'