Create Jenkinsfile

This commit is contained in:
Dayofdead2023 2023-03-15 15:35:06 +05:30 committed by GitHub
parent abbf1fece3
commit d6fd786828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

23
Jenkinsfile vendored Normal file
View 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'
}
}
}
}
}