mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +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 {
|
stages {
|
||||||
stage('vcs') {
|
stage('vcs') {
|
||||||
steps {
|
steps {
|
||||||
git url: 'https://github.com/naresh010203/spring-petclinic.git'
|
git url: 'https://github.com/naresh010203/spring-petclinic.git',
|
||||||
branch: 'develop'
|
branch: 'develop'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build') {
|
stage('build') {
|
||||||
steps {
|
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') {
|
stage('post build') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: '**/target/*.war',
|
archiveArtifacts artifacts: '**/target/*.jar',
|
||||||
onlyIfSuccessful: true
|
onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue