We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f79aba8 commit 294663bCopy full SHA for 294663b
1 file changed
Jenkinsfile
@@ -1,25 +1,22 @@
1
-pipeline {
2
- agent any
3
- stages {
4
- stage('Checkout') {
5
- steps {
6
- echo 'Checkout completed'
7
- }
8
9
- stage('Static-test') {
10
11
- echo 'Running static tests on code'
12
13
14
- stage('Build') {
15
16
- sh 'echo "Building the code"'
17
18
19
- stage('Deploy') {
20
21
- echo 'Deploying into environment'
22
23
24
+pipeline{
+ agent any
+ stages{
+ stage('Git Checkout Stage'){
+ steps{
+ git branch: 'main', url: 'https://github.com/sudheer76R/java-example.git'
+ }
+ stage('Build Stage'){
+ sh 'mvn clean install'
+ stage('SonarQube Analysis Stage') {
+ withSonarQubeEnv('sonar') {
+ sh "mvn clean verify sonar:sonar -Dsonar.projectKey=demo_sp"
25
}
0 commit comments