From 1bd87090faccb22b70c7634e5c44dfe7d1d6c93d Mon Sep 17 00:00:00 2001 From: pavan-msys <149513767+pavan-msys@users.noreply.github.com> Date: Tue, 5 May 2026 12:08:42 +0530 Subject: [PATCH] Add Jenkins pipeline for build and deployment --- Jenkinsfile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..63cedc1 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,37 @@ +pipeline { + agent any + + stages { + stage('Info') { + steps { + echo "Branch: ${env.BRANCH_NAME}" + echo "PR ID: ${env.CHANGE_ID}" + echo "Target: ${env.CHANGE_TARGET}" + } + } + + stage('Build') { + steps { + sh 'echo "Building..."' + } + } + + stage('Test') { + steps { + sh 'echo "Running tests..."' + } + } + + stage('Deploy') { + when { + expression { + env.CHANGE_ID == null && + (env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'master') + } + } + steps { + echo "🚀 Deploying from ${env.BRANCH_NAME}" + } + } + } +}