We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdaf393 commit aa47f41Copy full SHA for aa47f41
JenkinsfileQA
@@ -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
17
+ echo 'compiling..'
18
+ sh 'mvn compile'
19
20
21
+ stage('UnitTest'){
22
23
24
+ sh 'mvn test'
25
26
+ post {
27
+ success {
28
+ junit 'target/surefire-reports/*.xml'
29
30
31
32
+ stage('Package'){
33
34
35
+ sh 'mvn package'
36
37
38
39
+}
40
0 commit comments