commit e72342b56e257d84504f72341923caf32ac04391 Author: srini Date: Fri Mar 22 06:04:51 2024 +0530 added jenkins diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..6eeb6cc7d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,42 @@ +pipeline{ + agent any + tools{ + maven "MVN_DEFAULT" + } + stages { + stage('vcs') + { + steps{ + git url:'https://github.com/spring-projects/spring-petclinic.git', + branch: 'main' + } + } + stage('exce mvn') { + steps{ + MAVENRUN( + tool: 'MVN_DEFAULT', + pom:'pom.xml', + goal:'clean install', + deployerID:'MVN_DEPLOYER' + ) + } + } + stage('deploy mvn') + { + steps{ + MAVENDEPLOY( + id: 'spc-deployer', + serverId: 'JFROG_INSTANCE_ID', + releaseRepo: 'srini415-libs-release-local', + snapshotRepo: 'srini415-libs-snapshot-local' + ) + } + } + stage('reporting') { + steps { + junit testResults: 'target/surefire-reports/*.xml' + } + } + } + +} \ No newline at end of file