-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathJenkinsfile
32 lines (29 loc) · 934 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
#!groovy
pipeline {
agent {
label 'general-purpose'
}
tools {
maven "maven-3.6.3"
}
stages {
stage('Build Payara-Starter') {
environment {
JAVA_HOME = tool("zulu-17")
PATH = "${env.JAVA_HOME}/bin:${env.PATH}"
MAVEN_OPTS = '-Xmx2G -Djavax.net.ssl.trustStore=${JAVA_HOME}/jre/lib/security/cacerts'
payaraBuildNumber = "${BUILD_NUMBER}"
}
steps {
script {
sh '''
echo *#*#*#*#*#*#*#*#*#*#*#*# Building SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
mvn -B -V -ff -e clean install --strict-checksums \
-Djavadoc.skip -Dsource.skip
echo *#*#*#*#*#*#*#*#*#*#*#*# Built SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
'''
}
}
}
}
}