From a037a8b5aa31da959a1eecede0a0bf9a0202247b Mon Sep 17 00:00:00 2001 From: subodh Date: Tue, 10 Mar 2026 03:18:46 +0000 Subject: [PATCH] updated jenkinsfile --- Jenkinsfile | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bfdbe1c..53b4399 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,11 +13,8 @@ // ============================================================================= pipeline { - agent any + agent wnode - // ------------------------------------------------------------------------- - // Environment variables - sensitive values come from Jenkins Credentials - // ------------------------------------------------------------------------- environment { DOCKER_HUB_USER = 'subkamble' BACKEND_IMAGE = "${DOCKER_HUB_USER}/react-mysql-backend" @@ -46,9 +43,6 @@ pipeline { stages { - // ===================================================================== - // STAGE 1: Checkout & Metadata - // ===================================================================== stage('Checkout') { steps { checkout scm @@ -61,9 +55,6 @@ pipeline { } } - // ===================================================================== - // STAGE 2: Install Dependencies & Lint - // ===================================================================== stage('Install & Lint') { parallel { stage('Backend - Install') { @@ -83,9 +74,6 @@ pipeline { } } - // ===================================================================== - // STAGE 3: Test - // ===================================================================== stage('Test') { parallel { stage('Backend - Test') { @@ -107,9 +95,6 @@ pipeline { } } - // ===================================================================== - // STAGE 4: Docker Build (all branches) - // ===================================================================== stage('Docker Build') { parallel { stage('Build Backend') { @@ -129,9 +114,6 @@ pipeline { } } - // ===================================================================== - // STAGE 5: Docker Push (main + staging branches only) - // ===================================================================== stage('Docker Push') { when { expression { env.IS_DEPLOYABLE == 'true' } @@ -170,13 +152,6 @@ pipeline { } } } - - // ===================================================================== - // STAGE 6: Deploy to Kubernetes - // - // main → onpremise overlay (production) - // staging → minikube overlay (staging / dev cluster) - // ===================================================================== stage('Deploy') { when { expression { env.IS_DEPLOYABLE == 'true' } @@ -212,9 +187,6 @@ pipeline { } } - // ===================================================================== - // STAGE 7: Smoke Test (post-deploy health check) - // ===================================================================== stage('Smoke Test') { when { expression { env.IS_DEPLOYABLE == 'true' } @@ -240,9 +212,6 @@ pipeline { } } - // ========================================================================= - // POST Actions - // ========================================================================= post { always { // Clean up dangling local Docker images to save disk space @@ -268,16 +237,6 @@ pipeline { } -// ============================================================================= -// ============================================================================= -// -// ██████╗ ██╗████████╗ ██████╗ ██████╗ ███████╗ ██████╗ █████╗ ████████╗ -// ██╔════╝ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔════╝ ██╔══██╗██╔══██╗╚══██╔══╝ -// ██║ ███╗██║ ██║ ██║ ██║██████╔╝███████╗ ██║ ██║███████║ ██║ -// ██║ ██║██║ ██║ ██║ ██║██╔═══╝ ╚════██║ ██║ ██║██╔══██║ ██║ -// ╚██████╔╝██║ ██║ ╚██████╔╝██║ ███████║ ██████╔╝██║ ██║ ██║ -// ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ -// // GITOPS / ARGOCD WORKFLOW (commented out — activate when ArgoCD is installed) // ============================================================================= //