updated jenkins

This commit is contained in:
Maharshi Patel 2021-01-10 15:00:27 -08:00
parent 3c85064eea
commit a2f5be2c1b

20
Jenkinsfile vendored
View file

@ -28,7 +28,25 @@ pipeline {
id: "ARTIFACTORY_SERVER",
url: "$artifactory_url"
)
sh 'mvn validate compile test package'
rtMavenDeployer (
id: "MAVEN_DEPLOYER",
serverId: "ARTIFACTORY_SERVER",
releaseRepo: "spring-petclinic"
)
rtMavenResolver (
id: "MAVEN_RESOLVER",
serverId: "ARTIFACTORY_SERVER",
releaseRepo: "libs-release"
)
rtMavenRun (
tool: MAVEN_TOOL, // Tool name from Jenkins configuration
pom: 'pom.xml',
goals: 'validate compile test',
deployerId: "MAVEN_DEPLOYER",
resolverId: "MAVEN_RESOLVER"
)
}
}
stage('build docker image') {