mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
Jenkinsfile_DP
This commit is contained in:
parent
24dbc1fe80
commit
463eb5e655
1 changed files with 40 additions and 12 deletions
52
Jenkinsfile
vendored
52
Jenkinsfile
vendored
|
@ -1,15 +1,43 @@
|
|||
node {
|
||||
stage('sourcecode'){
|
||||
//build step
|
||||
git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
|
||||
// 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{
|
||||
agents any
|
||||
|
||||
stages {
|
||||
stage ('SourceCode') {
|
||||
steps {
|
||||
//source code from github
|
||||
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 ('Build and install') {
|
||||
steps {
|
||||
//clean and build using maven
|
||||
sh 'mvn clean install'
|
||||
}
|
||||
|
||||
}
|
||||
stage('Archive test results'){
|
||||
//insteall & archive test reuslts
|
||||
junit '**/surefire-reports/*xml'
|
||||
archiveArtifacts artifacts: '**/*.jar', followSymlinks: false
|
||||
stage ('Archive test results') {
|
||||
steps {
|
||||
//Archive the test results
|
||||
junit '**/surefire-reports/*xml'
|
||||
archiveArtifacts artifacts: '**/*.jar', followSymlinks: false
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue