-
Notifications
You must be signed in to change notification settings - Fork 21
/
Jenkinsfile
61 lines (61 loc) · 1.67 KB
/
Jenkinsfile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
pipeline {
agent any
tools {
// maven 'maven-3.5.4'
jdk 'graalvm'
}
options {
timestamps()
ansiColor("xterm")
}
stages {
stage ('Initialize') {
steps {
sh '''
echo "PATH = ${PATH}"
which java
## echo "M2_HOME = ${M2_HOME}"
## which mvn
'''
}
}
stage('Build') {
steps {
sh './mvnw -B clean install -DskipTests -DskipITs'
}
}
stage('Test JVM') {
steps {
sh './mvnw -B -fae clean verify'
}
post {
always {
junit '**/target/surefire-reports/TEST*.xml'
archiveArtifacts artifacts: '**/target/*-reports/TEST*.xml', fingerprint: false
}
}
}
stage('Test Native') {
steps {
sh "GRAALVM_HOME=$JAVA_HOME ./mvnw -B -fae clean verify -Dnative -Dquarkus.native.native-image-xmx=6g"
}
post {
always {
junit '**/target/failsafe-reports/TEST*.xml'
archiveArtifacts artifacts: '**/target/*-reports/TEST*.xml', fingerprint: false
}
}
}
stage('Results') {
steps {
sh 'du -cskh */target/* | grep -E "target/scenario|target/lib"'
// archiveArtifacts artifacts: '**/target/*-reports/TEST*.xml', fingerprint: false
}
}
}
post {
always {
deleteDir()
}
}
}