mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
changes sh command
This commit is contained in:
parent
57d779b101
commit
07f1b17950
1 changed files with 27 additions and 33 deletions
60
Jenkinsfile
vendored
60
Jenkinsfile
vendored
|
@ -1,38 +1,32 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
options {
|
options {
|
||||||
timeout(time: 30, unit: 'MINUTES')
|
timeout(time: 30, unit: 'MINUTES')
|
||||||
}
|
|
||||||
triggers {
|
|
||||||
pollSCM('* * * * *')
|
|
||||||
}
|
|
||||||
tools {
|
|
||||||
jdk 'java-17'
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage('vcs') {
|
|
||||||
steps {
|
|
||||||
git url: 'https://github.com/shaifalikhan5/spring-petclinic.git',
|
|
||||||
branch: 'developer'
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stage('build and packaging') {
|
triggers {
|
||||||
steps {
|
pollSCM('* * * * *')
|
||||||
|
|
||||||
sh : "mvn package"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
stage('reporting') {
|
tools {
|
||||||
steps {
|
jdk 'JDK_17'
|
||||||
archiveArtifacts artifacts : '**/target/sprigpetclinic-*.jar'
|
}
|
||||||
junit testResults : '**/surefire-reports/**.xml'
|
stages {
|
||||||
|
stage('vcs') {
|
||||||
}
|
steps {
|
||||||
|
git url: 'https://github.com/shaifalikhan5/spring-petclinic.git',
|
||||||
|
branch: 'developer'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('build and package') {
|
||||||
|
steps {
|
||||||
|
sh script: 'mvn package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('reporting') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: '**/target/springpetclinic-*.jar'
|
||||||
|
junit testResults: '**/target/surefire-reports/TEST-*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue