/
Jenkinsfile
65 lines (60 loc) · 1.35 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
62
63
64
65
pipeline {
agent {
label 'migration'
}
options {
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5'))
timestamps()
}
tools {
maven 'apache-maven-latest'
jdk 'adoptopenjdk-openj9-jdk11-latest'
}
environment {
// Target platform to build against (must correspond to a profile in the parent pom.xml)
PLATFORM = '2022-03'
PLATFORM_EXTRAS = '2022-03-extras'
}
stages {
stage ('Nightly') {
when {
not {
branch 'PR-*'
}
}
steps {
dir ("org.eclipse.emf.compare-parent") {
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
sh "mvn clean verify -P$PLATFORM_EXTRAS -Pextra-modules -Psign -Pjavadoc"
}
}
sh "./releng/org.eclipse.emf.compare.releng/publish-nightly.sh"
}
}
stage ('PR Verify') {
when {
branch 'PR-*'
}
steps {
dir ("org.eclipse.emf.compare-parent") {
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
sh "mvn clean verify -P$PLATFORM"
}
}
}
}
}
post {
always {
junit "**/tests/**/target/surefire-reports/*.xml"
}
unsuccessful {
emailext (
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':
Check console output at ${env.BUILD_URL}""",
to: 'emfcompare-build@eclipse.org'
)
}
}
}