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

This commit is contained in:
Bangara Raju Kottedi 2026-02-16 18:11:14 +05:30
parent cea6d218f8
commit 1bec713692

2
Jenkinsfile vendored
View File

@ -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