fix: ensure cleanup of deployment directory before building Angular
Some checks failed
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head There was a failure building this commit
Some checks failed
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head There was a failure building this commit
This commit is contained in:
parent
cea6d218f8
commit
1bec713692
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -32,7 +32,6 @@ pipeline {
|
||||
stage('Build Angular') {
|
||||
steps {
|
||||
sh '''
|
||||
rm -rf $DEPLOY_PATH/*
|
||||
ng build --configuration production --base-href /admin/
|
||||
'''
|
||||
}
|
||||
@ -41,6 +40,7 @@ pipeline {
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh '''
|
||||
rm -rf $DEPLOY_PATH/*
|
||||
cp -r dist/portfolio-admin/browser/* $DEPLOY_PATH/
|
||||
chown -R www-data:www-data $DEPLOY_PATH
|
||||
systemctl reload nginx
|
||||
|
||||
Loading…
Reference in New Issue
Block a user