From 4693f075a7bbf76a6666b4d0d1744765e45ac5a5 Mon Sep 17 00:00:00 2001 From: subbramritgithub <125747961+subbramritgithub@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:44:49 +0530 Subject: [PATCH] Create Jenkinsfile --- Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..84a4e4816 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +pipeline{ + agent any + tools{ + jdk 'java17' + maven 'maven3' + } + stages{ + stage("cleanup workspace"){ + steps{ + cleanWs() + } + } + stage("checkout to Scm"){ + steps{ + git branch: "CICD-DEMO" , credentialsId: "subbramritgithub" , url: "https://github.com/subbramritgithub/complete-prodcution-e2e-pipeline.git" + } + } + stage("build application"){ + steps{ + sh "mvn clean package" + } + } + + } +}