From 1bec7136928fd80cd1f5b32256e95f5427c5bf72 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Mon, 16 Feb 2026 18:11:14 +0530 Subject: [PATCH] fix: ensure cleanup of deployment directory before building Angular --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 00a7411..371e1a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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