fix: ensure cleanup of deployment directory before building Angular
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head There was a failure building this commit
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head There was a failure building this commit
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user