mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Merge 434f8b0dd3
into d8fcd11e67
This commit is contained in:
commit
60f935069d
1 changed files with 45 additions and 0 deletions
45
jenkinsfile
Normal file
45
jenkinsfile
Normal file
|
@ -0,0 +1,45 @@
|
|||
pipeline {
|
||||
agent { label 'JDK-17' }
|
||||
options {
|
||||
timeout(time: 30, unit: 'MINUTES')
|
||||
}
|
||||
triggers {
|
||||
pollSCM('* * * * *')
|
||||
}
|
||||
tools {
|
||||
jdk 'JDK-17'
|
||||
}
|
||||
stages {
|
||||
stage('vcs') {
|
||||
steps {
|
||||
git url: 'https://github.com/uday1g/spring-petclinic.git',
|
||||
branch: 'main'
|
||||
}
|
||||
}
|
||||
stage('build and package') {
|
||||
steps {
|
||||
rtMavenDeployer (
|
||||
id: "SPC_DEPLOYER",
|
||||
serverId: "JFROG_CLOUD",
|
||||
releaseRepo: 'uday-libs-release-local',
|
||||
snapshotRepo: 'uday-libs-snapshot-local'
|
||||
)
|
||||
rtMavenRun (
|
||||
tool: 'maven 3.9',
|
||||
pom: 'pom.xml',
|
||||
goals: 'clean install',
|
||||
deployerId: "SPC_DEPLOYER"
|
||||
)
|
||||
rtPublishBuildInfo (
|
||||
serverId: "JFROG_CLOUD"
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('reporting') {
|
||||
steps {
|
||||
junit testResults: '**/target/surefire-reports/TEST-*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue