Skip to content

Commit 804aab9

Browse files
authored
Update Jenkinsfile
1 parent 25e728f commit 804aab9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Jenkinsfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pipeline {
33
agent any
44

55
tools {
6-
maven 'maven:3.9.9'
6+
Maven 'maven:3.9.9'
77
}
88

99
stages {
@@ -17,16 +17,23 @@ pipeline {
1717
}
1818

1919
stage("test"){
20-
2120
steps {
2221
echo 'testing application'
22+
sh 'mvn test'
2323
}
2424
}
25-
25+
26+
stage("package"){
27+
steps {
28+
echo 'packaging application'
29+
sh 'mvn package'
30+
}
31+
2632
stage("deploy"){
2733

2834
steps{
2935
echo 'deploying application'
36+
sh 'mvn deploy'
3037
}
3138
}
3239

0 commit comments

Comments
 (0)