Skip to content

Commit 438a265

Browse files
authored
Update Jenkinsfile
1 parent 7f865ce commit 438a265

1 file changed

Lines changed: 2 additions & 57 deletions

File tree

Jenkinsfile

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -10,64 +10,9 @@ pipeline{
1010

1111
script{
1212

13-
git branch: 'main', url: 'https://github.com/vikash-kumar01/mrdevops_javaapplication.git'
14-
}
15-
}
16-
}
17-
stage('UNIT testing'){
18-
19-
steps{
20-
21-
script{
22-
23-
sh 'mvn test'
24-
}
25-
}
26-
}
27-
stage('Integration testing'){
28-
29-
steps{
30-
31-
script{
32-
33-
sh 'mvn verify -DskipUnitTests'
34-
}
35-
}
36-
}
37-
stage('Maven build'){
38-
39-
steps{
40-
41-
script{
42-
43-
sh 'mvn clean install'
44-
}
45-
}
46-
}
47-
stage('Static code analysis'){
48-
49-
steps{
50-
51-
script{
52-
53-
withSonarQubeEnv(credentialsId: 'sonar-api') {
54-
55-
sh 'mvn clean package sonar:sonar'
56-
}
57-
}
58-
59-
}
60-
}
61-
stage('Quality Gate Status'){
62-
63-
steps{
64-
65-
script{
66-
67-
waitForQualityGate abortPipeline: false, credentialsId: 'sonar-api'
68-
}
13+
echo "hello jenkins"
6914
}
7015
}
7116
}
7217

73-
}
18+
}

0 commit comments

Comments
 (0)