Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Jenkins
  • Loading branch information
Evan Langlais committed Feb 7, 2019
1 parent 2f2e535 commit cb58cef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile
Expand Up @@ -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') {
Expand All @@ -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'
}
}

0 comments on commit cb58cef

Please sign in to comment.