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" + } + } + + } +}