diff --git a/jenkinsfile b/jenkinsfile index 7d802efeb..d1bdd2f5f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,16 +11,16 @@ pipeline { stage ('Artifactory configuration') { steps { rtServer ( - id: "ARTIFACTORY_SERVER", + id: "MAVEN_DEPLOYER", url: 'https://abhiram13.jfrog.io/artifactory', credentialsId: 'jfrog1' ) rtMavenDeployer ( id: "MAVEN_DEPLOYER", - serverId: "ARTIFACTORY_SERVER", - releaseRepo: 'jfrog', - snapshotRepo: 'jfrog' + serverId: "jfrog", + releaseRepo: 'libs-release', + snapshotRepo: 'libs-snapshot' ) diff --git a/jenkinsfile1 b/jenkinsfile1 new file mode 100644 index 000000000..649f5cbc5 --- /dev/null +++ b/jenkinsfile1 @@ -0,0 +1,41 @@ +pipeline { + agent { label 'jfrog'} + stages { + stage('build') { + steps { + git url: 'https://github.com/Mekalaabhiramreddy/spring-petclinic.git', + branch: 'main' + } + } + + stage ('Artifactory configuration') { + steps { + rtServer ( + id: "MAVEN_DEPLOYER", + url: 'https://abhiram13.jfrog.io/artifactory', + credentialsId: 'jfrog1' + ) + + rtMavenDeployer ( + id: "MAVEN_DEPLOYER", + serverId: "jfrog", + releaseRepo: 'jfrog', + snapshotRepo: 'jfrog' + ) + + + } + } + stage('Build Maven Project') { + steps { + rtMavenRun ( + tool: 'maven', + pom: 'pom.xml', + goals: 'clean install', + deployerId: "MAVEN_DEPLOYER" + ) + } + + } + } +}