mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
Create Jenkinsfile
This commit is contained in:
parent
62dbfa8e9a
commit
4693f075a7
1 changed files with 25 additions and 0 deletions
25
Jenkinsfile
vendored
Normal file
25
Jenkinsfile
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue