mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
added file
This commit is contained in:
parent
18eafd9966
commit
4e78122f87
2 changed files with 45 additions and 4 deletions
|
@ -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'
|
||||
)
|
||||
|
||||
|
||||
|
|
41
jenkinsfile1
Normal file
41
jenkinsfile1
Normal file
|
@ -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"
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue