forked from TelluIoT/ThingML
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (29 loc) · 903 Bytes
/
Copy pathJenkinsfile
File metadata and controls
30 lines (29 loc) · 903 Bytes
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
properties( [ buildDiscarder(logRotator(numToKeepStr: '20'))])
timeout(60) {
node {
stage('Downloading changes') { // for display purposes
//git "https://github.com/SINTEF-9012/ThingML.git"
checkout scm
}
stage('Building Compilers') {
// Run the maven build
sh "mvn -Dmaven.test.failure.ignore clean install"
}
stage('Building Xtext plugins') {
sh("cd language/ && mvn -Dmaven.test.failure.ignore -pl !thingml.ui.tests clean install && cd ..")
}
stage('Testing') {
sh("cd testing/ && mvn -Dmaven.test.failure.ignore test thingmlreport:generate && cd ..")
}
stage('Publishing HTML Report') {
publishHTML (target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'testing/target/',
reportFiles: 'thingml-testreport.html',
reportName: "ThingML Test Report"
])
}
}
}