forked from mw-hrastega/Times-Table-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
33 lines (33 loc) · 991 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
// Declarative Pipeline
pipeline {
agent any
stages {
stage('BuildAndTest') {
matrix {
agent any
axes {
axis {
name 'MATLAB_VERSION'
values 'R2022a', 'R2022b'
}
}
tools {
matlab "${MATLAB_VERSION}"
}
stages {
stage('Run MATLAB commands') {
steps {
runMATLABCommand 'ver, pwd'
}
}
stage('Run MATLAB Tests') {
steps {
runMATLABTests(testResultsJUnit: 'test-results/results.xml',
codeCoverageCobertura: 'code-coverage/coverage.xml')
}
}
}
}
}
}
}