mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 02:45:50 +00:00
changes
This commit is contained in:
parent
cf6c717a8c
commit
ba820a6d8e
1 changed files with 9 additions and 8 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -1,5 +1,6 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'Master'}
|
agent { label 'Master'}
|
||||||
|
triggers { pollSCM ('* * * * *') }
|
||||||
stages{
|
stages{
|
||||||
stage('vcs') {
|
stage('vcs') {
|
||||||
steps {
|
steps {
|
||||||
|
@ -30,14 +31,7 @@ pipeline {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test the code by using sonarqube') {
|
stage ('package') {
|
||||||
steps {
|
|
||||||
withSonarQubeEnv('SONAR_CLOUD') {
|
|
||||||
sh 'mvn clean verify sonar:sonar -Dsonar.login=ea06c1ce5d1ee81e35db29d8cb0de69b42c70278 -Dsonar.organization=springpetclinic-1 -Dsonar.projectKey=springpetclinic-1_bha'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Exec Maven') {
|
|
||||||
steps {
|
steps {
|
||||||
rtMavenRun (
|
rtMavenRun (
|
||||||
tool: 'MAVEN_DEFAULT',
|
tool: 'MAVEN_DEFAULT',
|
||||||
|
@ -50,6 +44,13 @@ pipeline {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Test the code by using sonarqube') {
|
||||||
|
steps {
|
||||||
|
withSonarQubeEnv('SONAR_CLOUD') {
|
||||||
|
sh 'mvn clean verify sonar:sonar -Dsonar.login=ea06c1ce5d1ee81e35db29d8cb0de69b42c70278 -Dsonar.organization=springpetclinic-1 -Dsonar.projectKey=springpetclinic-1_bha'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Gathering the artifacts & test results') {
|
stage('Gathering the artifacts & test results') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: '**/target/*.jar',
|
archiveArtifacts artifacts: '**/target/*.jar',
|
||||||
|
|
Loading…
Reference in a new issue