mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Create Jenkinsfile
This commit is contained in:
parent
abbf1fece3
commit
d6fd786828
1 changed files with 23 additions and 0 deletions
23
Jenkinsfile
vendored
Normal file
23
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
pipeline {
|
||||
agent { node { label 'ubuntu' } }
|
||||
stages {
|
||||
stage ('git') {
|
||||
steps {
|
||||
git url: 'https://github.com/Kiranteja623/spring-petclinic.git'
|
||||
branch: 'develop'
|
||||
}
|
||||
}
|
||||
stage ('package') {
|
||||
steps {
|
||||
sh 'mvn package'
|
||||
}
|
||||
}
|
||||
stage ('sonarqube') {
|
||||
steps {
|
||||
withSonarQubeEnv('Kiranteja623') {
|
||||
sh 'mvn clean package sonar:sonar -Dsonar.organization=kiranteja623 -Dsonar.login=ddfb007e5e67490bc157bd464d92bdfd2690f1d2 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=kiranteja623/petclinic'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue