-
Notifications
You must be signed in to change notification settings - Fork 123
/
Jenkinsfile
35 lines (34 loc) · 1.08 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
pipeline {
agent any
tools {
maven 'maven-3.5.3'
jdk 'jdk-11'
}
stages {
stage ('Initialize') {
steps {
sh '''
whoami
echo "HOME = ${HOME}"
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
gpg --list-keys
'''
}
}
stage ('Build') {
steps {
// mvn activates the jfxtras profile, using that pgp can be setup in mvn's settings.xml, most notably gpg.passphrase and gpg.keyname
// http://maven.apache.org/plugins/maven-gpg-plugin/sign-mojo.html
// UI test don't well on Jenkins
// Javadoc generation using asciidoclet is not working well
sh 'mvn install -P jfxtras -DskipTests -Dmaven.javadoc.skip=true'
}
post {
success {
junit 'target/surefire-reports/**/*.xml'
}
}
}
}
}