-
Notifications
You must be signed in to change notification settings - Fork 19
/
Jenkinsfile
45 lines (36 loc) · 912 Bytes
/
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
pipeline {
agent any
tools {
maven "apache-maven-latest"
jdk "temurin-latest"
}
stages {
stage("Compile") {
steps {
withMaven() {
sh "mvn -Pstaging compile"
}
}
}
stage("Unit Tests & install") {
steps {
withMaven() {
sh "mvn -Pstaging install"
}
}
}
stage("Integration-Test") {
steps {
withMaven() {
sh "wget https://download.eclipse.org/ee4j/glassfish/glassfish-7.0.4.zip"
sh "unzip glassfish-7.0.4.zip"
sh "rm glassfish7/glassfish/modules/jakarta.mvc-api.jar"
sh "rm glassfish7/glassfish/modules/krazo-*.jar"
sh "glassfish7/bin/asadmin start-domain"
sh "mvn -Pstaging,testsuite-glassfish verify"
sh "glassfish7/bin/asadmin stop-domain"
}
}
}
}
}