Skip to content

Commit aa47f41

Browse files
authored
Create JenkinsfileQA
1 parent bdaf393 commit aa47f41

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

JenkinsfileQA

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
pipeline{
2+
3+
tools{
4+
jdk 'myjava'
5+
maven 'mymaven'
6+
}
7+
agent {label 'qa_Server'}
8+
stages{
9+
stage('checkout'){
10+
steps{
11+
git branch: 'qa', url: 'https://github.com/sonal04devops/JavaWebCalculator.git'
12+
}
13+
}
14+
stage('Compile'){
15+
16+
steps{
17+
echo 'compiling..'
18+
sh 'mvn compile'
19+
}
20+
}
21+
stage('UnitTest'){
22+
23+
steps{
24+
sh 'mvn test'
25+
}
26+
post {
27+
success {
28+
junit 'target/surefire-reports/*.xml'
29+
}
30+
}
31+
}
32+
stage('Package'){
33+
34+
steps{
35+
sh 'mvn package'
36+
}
37+
}
38+
39+
}
40+
}

0 commit comments

Comments
 (0)