added rtserver

This commit is contained in:
Maharshi Patel 2021-01-10 20:31:48 -08:00
parent a86a38ab2b
commit 9b9a86cd7b

8
Jenkinsfile vendored
View file

@ -34,6 +34,14 @@ pipeline {
sh "mvn clean validate compile test package"
sh "ls -la target"
sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
rtServer (id: 'jenkins-artifactory-server',url: 'https://petclinic.jfrog.io/artifactory',username: 'jfroguser',
password: 'AdminPassword1',bypassProxy: true,timeout: 300)
rtMavenDeployer (id: "MAVEN_DEPLOYER",serverId: "jenkins-artifactory-server",
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "jenkins-artifactory-server",
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
rtMavenRun (tool: 'mvn', pom: './pom.xml',goals: 'clean install',
deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER")
}
}
stage('build docker image') {