Skip to content

Commit 9909a61

Browse files
Create Jenkinsfile
1 parent 2c2188c commit 9909a61

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Jenkinsfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
pipeline {
2+
agent any
3+
4+
tools {
5+
jdk 'java17'
6+
maven 'maven3.6'
7+
}
8+
9+
stages {
10+
11+
stage('Compile') {
12+
steps {
13+
sh 'mvn compile'
14+
}
15+
}
16+
17+
stage('Testing') {
18+
steps {
19+
sh 'mvn test'
20+
}
21+
}
22+
23+
stage('Building The Project') {
24+
steps {
25+
sh 'mvn package'
26+
}
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)