forked from Sonal0409/DevOpsClassCodes
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathJenkinsfile3
38 lines (35 loc) · 940 Bytes
/
Jenkinsfile3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pipeline{
agent any
stages{
stage('checkout the code from github'){
steps{
git url: 'https://github.com/akshu20791/DevOpsClassCodes/'
echo 'github url checkout'
}
}
stage('codecompile with akshat'){
steps{
echo 'starting compiling'
sh 'mvn compile'
}
}
stage('codetesting with akshat'){
steps{
sh 'mvn test'
}
}
stage('qa with akshat'){
steps{
mvn sonar:sonar \
-Dsonar.projectKey=myproject \
-Dsonar.host.url=http://3.235.6.184:9000 \
-Dsonar.login=f46aed43925b1d0b654454cb5085165ef0951843
}
}
stage('package with akshat'){
steps{
sh 'mvn package'
}
}
}
}