diff --git a/Jenkinsfile b/Jenkinsfile index 79422bc21..865857d91 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,43 +11,9 @@ pipeline { url: 'https://github.com/Bharatkumar5690/spring-petclinic.git' } } - stage('Artifactory configuration') { - steps { - rtServer ( - id: "ARTIFACTORY_SERVER", - url: 'https://sbharatkumar.jfrog.io/artifactory', - credentialsId: 'JFROG_CLOUD_ADMIN' - ) - rtMavenDeployer ( - id: "MAVEN_DEPLOYER", - serverId: "ARTIFACTORY_SERVER", - releaseRepo: 'libs-release', - snapshotRepo: 'libs-snapshot' - ) - rtMavenResolver ( - id: "MAVEN_RESOLVER", - serverId: "ARTIFACTORY_SERVER", - releaseRepo: 'libs-release', - snapshotRepo: 'libs-snapshot' - ) - } - } stage('package') { steps { - rtMavenRun ( - tool: 'MAVEN_DEFAULT', - pom: 'pom.xml', - goals: 'clean install', - deployerId: "MAVEN_DEPLOYER", - resolverId: "MAVEN_RESOLVER" - ) - } - } - stage ('Publish build info') { - steps { - rtPublishBuildInfo ( - serverId: "ARTIFACTORY_SERVER" - ) + sh 'mvn package' } } stage('Test the code by using sonarqube') {