/
Jenkinsfile
40 lines (36 loc) · 927 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
pipeline {
agent {
kubernetes {
inheritFrom 'centos-7'
}
}
options {
buildDiscarder(logRotator(numToKeepStr:'20'))
disableConcurrentBuilds()
timeout(time: 300, unit: 'MINUTES')
}
tools {
jdk "openjdk-jdk11-latest"
}
stages {
stage('Build') {
steps {
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
sh """
metacity --sm-disable --replace 2> wm.err &
./mvnw -f releng/org.eclipse.emf.parsley.parent/pom.xml clean verify -Prcp-build,jacoco
"""
}
}
}
}
post {
always {
junit testResults: '**/target/surefire-reports/*.xml'
archiveArtifacts artifacts: '**/target/work/data/.metadata/.log, **/screenshots/, **/wm.err, **/hs_err_pid*.log'
}
success {
archiveArtifacts artifacts: 'target/repository/, **/target/work/data/.metadata/.log'
}
}
}