forked from kumar-ks/simple-java-maven-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjenkinsFile
More file actions
25 lines (24 loc) · 852 Bytes
/
jenkinsFile
File metadata and controls
25 lines (24 loc) · 852 Bytes
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
node {
stage ('Build') {
git url: 'https://github.com/RThangaraju123/simple-java-maven-app.git'
withMaven {
sh "mvn clean verify"
} // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
}
node {
stage ('Install1') {
git url: 'https://github.com/RThangaraju123/simple-java-maven-app.git'
withMaven {
sh "mvn install"
} // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
}
node {
stage ('ExecuteClassFile') {
git url: 'https://github.com/RThangaraju123/simple-java-maven-app.git'
withMaven {
sh "java -cp target/classes com.mycompany.app.App"
} // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
}