forked from udbc/sysfoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
48 lines (42 loc) · 755 Bytes
/
Jenkinsfile
File metadata and controls
48 lines (42 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
pipeline {
agent none
stages {
stage('build') {
agent {
docker {
image 'maven:3.9.6-eclipse-temurin-17'
}
}
steps {
echo 'compile maven app'
sh 'mvn compile'
}
}
stage('test') {
agent {
docker {
image 'maven:3.9.6-eclipse-temurin-17'
}
}
steps {
echo 'test maven app'
sh 'mvn clean test'
}
}
stage('package') {
agent {
docker {
image 'maven:3.9.6-eclipse-temurin-17'
}
}
steps {
echo 'package maven app'
sh 'mvn package -DskipTests'
archiveArtifacts '**/target/*.jar'
}
}
}
tools {
maven 'Maven 3.6.3'
}
}