From cb58cefba5eb7c34a13a97cf59f0b26a3de5248c Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Wed, 6 Feb 2019 20:56:16 -0500 Subject: [PATCH] Jenkins --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a1c1ec3..a3f0dff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,7 +36,7 @@ node { stage('Build') { milestone() - sh 'ng build --prod --aot --base-href /' + env.BRANCH_NAME + '/ --progress=false' + sh 'ng build --prod --aot --base-href /branches/' + env.BRANCH_NAME + '/ --progress=false' } stage('Archive') { @@ -47,9 +47,9 @@ node { stage('Deploy') { milestone() echo "Deploying..." - sh 'rm -rf /var/www/html/' + env.BRANCH_NAME - sh 'mkdir /var/www/html/' + env.BRANCH_NAME - sh 'cp -r dist/. /var/www/html/' + env.BRANCH_NAME + '/' - sh 'cp /var/www/html/.htaccess-template /var/www/html/' + env.BRANCH_NAME + '/.htaccess' + sh 'rm -rf /var/www/branches/' + env.BRANCH_NAME + sh 'mkdir /var/www/branches/' + env.BRANCH_NAME + sh 'cp -r dist/. /var/www/branches/' + env.BRANCH_NAME + '/' + sh 'cp /var/www/.htaccess-template /var/www/branches/' + env.BRANCH_NAME + '/.htaccess' } }