mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Merge e6274162a1
into 0aa3adb56f
This commit is contained in:
commit
047f4b924e
2 changed files with 74 additions and 0 deletions
31
Jenkinsfile
vendored
Normal file
31
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
options {
|
||||||
|
timeout(time: 1, unit: 'HOURS')
|
||||||
|
retry(2)
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage ('SourceCode') {
|
||||||
|
steps {
|
||||||
|
//source code from github
|
||||||
|
git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stage ('Build and install') {
|
||||||
|
steps {
|
||||||
|
//clean and build using maven
|
||||||
|
sh 'mvn clean install'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stage ('Archive test results') {
|
||||||
|
steps {
|
||||||
|
//Archive the test results
|
||||||
|
junit '**/surefire-reports/*xml'
|
||||||
|
archiveArtifacts artifacts: '**/*.jar', followSymlinks: false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
43
scripted_jf_backup
Normal file
43
scripted_jf_backup
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
// node {
|
||||||
|
// stage('sourcecode'){
|
||||||
|
// //build step
|
||||||
|
// git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
|
||||||
|
// }
|
||||||
|
// stage('Build and install'){
|
||||||
|
// //building using maven and install
|
||||||
|
// sh 'mvn clean install'
|
||||||
|
// }
|
||||||
|
// stage('Archive test results'){
|
||||||
|
// //insteall & archive test reuslts
|
||||||
|
// junit '**/surefire-reports/*xml'
|
||||||
|
// archiveArtifacts artifacts: '**/*.jar', followSymlinks: false
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
pipeline{
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage ('SourceCode') {
|
||||||
|
steps {
|
||||||
|
//source code from github
|
||||||
|
git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stage ('Build and install') {
|
||||||
|
steps {
|
||||||
|
//clean and build using maven
|
||||||
|
sh 'mvn clean install'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stage ('Archive test results') {
|
||||||
|
steps {
|
||||||
|
//Archive the test results
|
||||||
|
junit '**/surefire-reports/*xml'
|
||||||
|
archiveArtifacts artifacts: '**/*.jar', followSymlinks: false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue