mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
added jenkins file
This commit is contained in:
parent
bc91e7dbd4
commit
5f3187f731
1 changed files with 41 additions and 0 deletions
41
Jenkinsfile
vendored
Normal file
41
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
options {
|
||||||
|
timeout(time: 30, unit: 'MINUTES')
|
||||||
|
}
|
||||||
|
triggers {
|
||||||
|
pollSCM('* * * * *')
|
||||||
|
}
|
||||||
|
tools {
|
||||||
|
maven 'MAVEN_3.8'
|
||||||
|
jdk 'JDK_17'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage ('git'){
|
||||||
|
git branch: 'develop',
|
||||||
|
url: 'https://github.com/Akhil-Tejas225/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
stage ('build and package') {
|
||||||
|
rtMavenDeployer (
|
||||||
|
id: 'SPC_DEPLOYER'
|
||||||
|
serverId: 'JFROG_CLOUD'
|
||||||
|
releaseRepo: 'atdevops-libs-snapshot'
|
||||||
|
snapshotRepo: 'atdevops-libs-snapshot'
|
||||||
|
)
|
||||||
|
rtMavenRun (
|
||||||
|
tool: 'Maven_3.8'
|
||||||
|
deployerId: 'SPC_DEPLOYER'
|
||||||
|
pom: 'pom.xml'
|
||||||
|
goals: 'clean install'
|
||||||
|
)
|
||||||
|
rtPublishBuildInfo (
|
||||||
|
serverId: 'JFROG_CLOUD'
|
||||||
|
)
|
||||||
|
stage ('reporting'){
|
||||||
|
junit testResults: '**/target/surefire-reports/TEST-*.xml'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue