From 57d725c80ec301cc3987d8e1866fc3937af9885e Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sun, 2 Sep 2018 14:22:39 -0500 Subject: [PATCH] Change production deployment directory --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4ce38b6..764f561 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,12 +29,12 @@ pipeline { steps { sshPut remote: remote, from: 'archive.zip', into: '.' sshCommand remote: remote, command: """ - mkdir -p /var/www/revisions/$GIT_COMMIT && \ - unzip -d /var/www/revisions/$GIT_COMMIT /root/archive.zip && \ + mkdir -p /var/www/budget.wbrawner.com/revisions/$GIT_COMMIT && \ + unzip -d /var/www/budget.wbrawner.com/revisions/$GIT_COMMIT /root/archive.zip && \ rm /root/archive.zip && \ - if [ test -L /var/www/html ]; then unlink /var/www/html; fi && \ - ln -s /var/www/revisions/$GIT_COMMIT /var/www/html && \ - if [ \$(ls /var/www/revisions | wc -l) -gt 5 ]; then ls -t /var/www/revisions | tail -n +5 | xargs rm -rf; fi + if [ test -L /var/www/budget.wbrawner.com/html ]; then unlink /var/www/budget.wbrawner.com/html; fi && \ + ln -s /var/www/budget.wbrawner.com/revisions/$GIT_COMMIT /var/www/budget.wbrawner.com/html && \ + if [ \$(ls /var/www/budget.wbrawner.com/revisions | wc -l) -gt 5 ]; then ls -t /var/www/budget.wbrawner.com/revisions | tail -n +5 | xargs rm -rf; fi """ } }