diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..717dbfd0b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,39 @@ +pipeline { + agent {label 'java-11'} + stages{ + stage ('git') { + steps { + git branch: 'main', + url: 'https://github.com/Srikanthreddy1000/spring-petclinic.git' + } + stage('jfrog deployment') { + steps { + rtMavenDeployer ( + id: "jfrog-artifact", + serverId: "srikanthjfrog", + releaseRepo: default-libs-release-local, + snapshotRepo: default-libs-snapshot-local + ) + } + } + stage ('Maven') { + steps { + rtMavenRun ( + tool: maven-build + pom: 'pom.xml', + goals: 'clean install', + deployerId: "srikanthjfrog" + ) + } + } + stage ('Publish build info') { + steps { + rtPublishBuildInfo ( + serverId: "srikanthjfrog" + ) + } + + } + } + } +} \ No newline at end of file