From a5bcc424b534f4024b658845fb26469ac1b0cdac Mon Sep 17 00:00:00 2001 From: Nayan Sahebrrao Jadhav <63450606+nayans-ss@users.noreply.github.com> Date: Fri, 7 Mar 2025 01:55:32 +0530 Subject: [PATCH] Create Jenkinsfile Adding Jenkins --- Jenkinsfile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..64c5241 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,40 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + git 'https://github.com/your-username/your-repo.git' + } + } + + stage('Build') { + steps { + sh 'mvn clean package' + } + } + + stage('Test') { + steps { + sh 'mvn test' + } + } + + stage('Deploy') { + steps { + sh 'mkdir -p /tmp/deploy' + sh 'cp target/*.jar /tmp/deploy/' + echo '✅ Deployment complete!' + } + } + } + + post { + success { + echo '✅ Pipeline completed successfully!' + } + failure { + echo '❌ Pipeline failed!' + } + } +}