Update Jenkinsfile

This commit is contained in:
A-hash-bit 2022-08-08 16:58:06 +05:30 committed by GitHub
parent b52c2b39a9
commit 54a33a89c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

48
Jenkinsfile vendored
View file

@ -1,15 +1,39 @@
pipeline { pipeline{
agent any 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') { post{
steps { always{
sh 'mvn clean install' echo "========always========"
} }
} success{
} echo "========pipeline executed successfully ========"
} }
failure{
echo "========pipeline execution failed========"
}
}
}