Added artifactory

This commit is contained in:
Aseerwadham 2023-03-16 20:00:34 +05:30
parent f97f79e5bf
commit 006ff48912

34
Jenkinsfile vendored
View file

@ -11,12 +11,44 @@ pipeline {
branch: 'main'
}
}
stage ('Artifactory configuration') {
steps {
rtServer (
id: "ARTIFACTORY_SERVER",
url: 'https://gaseerwadham.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') {
tools {
jdk 'JDK_17'
}
steps {
sh "./mvnw ${params.MAVEN_GOAL}"
rtMavenRun (
tool: 'MAVEN_DEFAULT',
pom: 'pom.xml',
goals: 'clean install',
deployerId: "MAVEN_DEPLOYER"
)
rtPublishBuildInfo (
serverId: "ARTIFACTORY_SERVER"
)
}
}
stage('sonar analysis') {