mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
added
This commit is contained in:
parent
3c3a813bc4
commit
f0ea874951
1 changed files with 3 additions and 4 deletions
|
@ -3,18 +3,17 @@ pipeline {
|
|||
stages {
|
||||
stage('vcs') {
|
||||
steps {
|
||||
git url: 'https://github.com/naresh010203/spring-petclinic.git'
|
||||
git url: 'https://github.com/naresh010203/spring-petclinic.git',
|
||||
branch: 'develop'
|
||||
}
|
||||
}
|
||||
stage('build') {
|
||||
steps {
|
||||
sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH" && mvn clean package sonar:sonar -Dsonar.organization=nagendra4aa5 -Dsonar.projectKey=nag4a5'
|
||||
}
|
||||
sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH" && mvn clean package'
|
||||
}
|
||||
stage('post build') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: '**/target/*.war',
|
||||
archiveArtifacts artifacts: '**/target/*.jar',
|
||||
onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue