forked from vert-x3/vertx-dependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (35 loc) · 810 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
pipeline {
agent any
tools {
maven 'Maven'
}
environment {
MAVEN_SETTINGS_PATH = credentials("jenkins-sonatype-snapshot-repo-settings")
}
stages {
stage ('OracleJDK 8') {
tools {
jdk 'OracleJDK 8'
}
steps {
sh 'mvn -U -B -Dsurefire.reportNameSuffix=OracleJDK_8 clean deploy -s $MAVEN_SETTINGS_PATH'
}
post {
failure {
mail to:'[email protected]', subject:"Job '${env.JOB_NAME}' (${env.BUILD_NUMBER})", body: "Please go to ${env.BUILD_URL}."
}
}
}
stage ('OracleJDK latest') {
tools {
jdk 'OracleJDK latest'
}
when {
branch 'master'
}
steps {
sh 'mvn -U -B -fn -Dsurefire.reportNameSuffix=OracleJDK_latest clean test'
}
}
}
}