Skip to content

Commit 865a014

Browse files
author
vikrant1992
authored
JENKINS-FILE
1 parent ce4fdc8 commit 865a014

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
pipeline{
2+
agent any
3+
4+
stages{
5+
stage('compile stage'){
6+
steps {
7+
withMaven(maven : 'maven3.5'){
8+
sh 'mvn clean compile'
9+
}
10+
}
11+
}
12+
}
13+
14+
stage('test stage'){
15+
steps {
16+
withMaven(maven : 'maven3.5'){
17+
sh 'mvn test'
18+
}
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)