mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
b52c2b39a9
commit
54a33a89c1
1 changed files with 36 additions and 12 deletions
48
Jenkinsfile
vendored
48
Jenkinsfile
vendored
|
@ -1,15 +1,39 @@
|
|||
pipeline {
|
||||
pipeline{
|
||||
agent any
|
||||
tools{
|
||||
maven "maven3"
|
||||
/*
|
||||
tools{
|
||||
maven "Maven3"
|
||||
}
|
||||
stages {
|
||||
triggers{
|
||||
cron("* * * * *")
|
||||
}
|
||||
*/
|
||||
stages{
|
||||
stage("Checkout"){
|
||||
steps{
|
||||
echo "========executing checkout========"
|
||||
git url:"https://github.com/A-hash-bit/spring-petclinic.git", branch:"main"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stage("Build"){
|
||||
steps{
|
||||
sh "'mvn clean install'"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
stage('Maven Install') {
|
||||
steps {
|
||||
sh 'mvn clean install'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post{
|
||||
always{
|
||||
echo "========always========"
|
||||
}
|
||||
success{
|
||||
echo "========pipeline executed successfully ========"
|
||||
}
|
||||
failure{
|
||||
echo "========pipeline execution failed========"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue