mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:55:49 +00:00
added jenkins file
This commit is contained in:
parent
d7aa3cdb58
commit
d5adbad038
1 changed files with 39 additions and 0 deletions
39
Jenkinsfile
vendored
Normal file
39
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
pipeline {
|
||||||
|
agent {label 'java-11'}
|
||||||
|
stages{
|
||||||
|
stage ('git') {
|
||||||
|
steps {
|
||||||
|
git branch: 'main',
|
||||||
|
url: 'https://github.com/Srikanthreddy1000/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
stage('jfrog deployment') {
|
||||||
|
steps {
|
||||||
|
rtMavenDeployer (
|
||||||
|
id: "jfrog-artifact",
|
||||||
|
serverId: "srikanthjfrog",
|
||||||
|
releaseRepo: default-libs-release-local,
|
||||||
|
snapshotRepo: default-libs-snapshot-local
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Maven') {
|
||||||
|
steps {
|
||||||
|
rtMavenRun (
|
||||||
|
tool: maven-build
|
||||||
|
pom: 'pom.xml',
|
||||||
|
goals: 'clean install',
|
||||||
|
deployerId: "srikanthjfrog"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Publish build info') {
|
||||||
|
steps {
|
||||||
|
rtPublishBuildInfo (
|
||||||
|
serverId: "srikanthjfrog"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue