mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 08:45:50 +00:00
23
This commit is contained in:
parent
9c7bc898c9
commit
179b26d9c2
1 changed files with 0 additions and 48 deletions
48
jenkinsfile
48
jenkinsfile
|
@ -1,48 +0,0 @@
|
||||||
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: 'qt-app-libs-snapshot-local',
|
|
||||||
snapshotRepo: 'qt-app-libs-snapshot-local'
|
|
||||||
)
|
|
||||||
rtMavenRun (
|
|
||||||
tool: 'MAVEN 3.9', // Tool name from Jenkins configuration
|
|
||||||
pom: 'pom.xml',
|
|
||||||
goals: 'clean install',
|
|
||||||
deployerId: "SPC_DEPLOYER"
|
|
||||||
//,
|
|
||||||
//buildName: "${JOB_NAME}",
|
|
||||||
//buildNumber: "${BUILD_ID}"
|
|
||||||
)
|
|
||||||
rtPublishBuildInfo (
|
|
||||||
serverId: "JFROG_CLOUD"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('reporting') {
|
|
||||||
steps {
|
|
||||||
junit testResults: '**/target/surefire-reports/TEST-*.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in a new issue