Create Jenkinsfile

This commit is contained in:
subbramritgithub 2024-10-16 12:44:49 +05:30 committed by GitHub
parent 62dbfa8e9a
commit 4693f075a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

25
Jenkinsfile vendored Normal file
View file

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