This commit is contained in:
Mekalaabhiramreddy 2023-03-16 12:36:39 +05:30
parent 8076f12578
commit 18eafd9966

View file

@ -8,7 +8,7 @@ pipeline {
} }
} }
stage ('Artifactory') { stage ('Artifactory configuration') {
steps { steps {
rtServer ( rtServer (
id: "ARTIFACTORY_SERVER", id: "ARTIFACTORY_SERVER",
@ -23,29 +23,19 @@ pipeline {
snapshotRepo: 'jfrog' snapshotRepo: 'jfrog'
) )
rtMavenResolver (
id: "MAVEN_RESOLVER",
serverId: "ARTIFACTORY_SERVER",
releaseRepo: 'libs-release',
snapshotRepo: 'libs-snapshot'
)
} }
} }
stage('package') { stage('Build Maven Project') {
steps { steps {
sh "mvn ${params.MAVEN_GOAL}"
rtMavenRun ( rtMavenRun (
tool: 'maven', tool: 'maven',
pom: 'pom.xml', pom: 'pom.xml',
goals: 'clean install', goals: 'clean install',
deployerId: "MAVEN_DEPLOYER" deployerId: "MAVEN_DEPLOYER"
)
)
rtPublishBuildInfo (
serverId: "ARTIFACTORY_SERVER"
)
} }
}
} }
}
} }