Compare commits

...

10 Commits

Author SHA1 Message Date
7cf7246abd Merge pull request 'develop' (#9) from develop into prod
All checks were successful
bangararaju.kottedi.in/admin/admin-prod/pipeline/head This commit looks good
Reviewed-on: #9
2026-02-16 20:05:59 +05:30
8885e288ed removed test file
All checks were successful
bangararaju.kottedi.in/admin/admin-uat/pipeline/head This commit looks good
bangararaju.kottedi.in/admin/admin-prod/pipeline/head This commit looks good
2026-02-16 20:05:39 +05:30
a888636487 webhook test
All checks were successful
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head This commit looks good
bangararaju.kottedi.in/admin/admin-prod/pipeline/head This commit looks good
2026-02-16 19:57:11 +05:30
dad46d788d webhook test
All checks were successful
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head This commit looks good
2026-02-16 19:45:15 +05:30
3619e33f44 webhook test
All checks were successful
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head This commit looks good
2026-02-16 19:31:46 +05:30
cf8e3b880c fix: add sudo to systemctl reload command in deployment stage
All checks were successful
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head This commit looks good
2026-02-16 19:13:30 +05:30
a6e48d6b2b fix: remove redundant ownership change command in deployment stage
Some checks failed
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head There was a failure building this commit
2026-02-16 18:39:34 +05:30
06a64fa018 fix: add npm install step before building Angular
Some checks failed
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head There was a failure building this commit
2026-02-16 18:28:53 +05:30
1bec713692 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
2026-02-16 18:11:14 +05:30
cea6d218f8 feat: add Jenkins pipeline for automated deployment
Some checks failed
bangararaju.kottedi.in/admin/admin-uat-new/pipeline/head There was a failure building this commit
2026-02-16 17:40:09 +05:30

69
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,69 @@
pipeline {
agent { label 'built-in' }
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
}
environment {
DEPLOY_PATH = "/var/www/bangararaju.kottedi.in/admin"
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Inject Environment File') {
steps {
configFileProvider(
[configFile(fileId: 'admin-uat-properties',
targetLocation: 'src/environments/environment.ts',
replaceTokens: true)]
) {
echo "Environment file injected"
}
}
}
stage('Build Angular') {
steps {
sh '''
npm install
ng build --configuration production --base-href /admin/
'''
}
}
stage('Deploy') {
steps {
sh '''
rm -rf $DEPLOY_PATH/*
cp -r dist/portfolio-admin/browser/* $DEPLOY_PATH/
sudo /usr/bin/systemctl reload nginx
'''
}
}
stage('Health Check') {
steps {
sh '''
sleep 2
curl -f https://bangararaju-uat.kottedi.in/admin
'''
}
}
}
post {
failure {
echo "Deployment failed!"
}
success {
echo "Deployment successful!"
}
}
}