-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
31 lines (31 loc) · 951 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
pipeline {
agent any
stages {
stage('BuildAndTest') {
matrix {
axes {
axis {
name 'MATLAB_VERSION'
values 'R2024a', 'R2024b'
}
}
tools {
matlab "${MATLAB_VERSION}"
}
stages {
stage('Run MATLAB commands') {
steps {
runMATLABCommand(command: 'ver, pwd')
}
}
stage('Run MATLAB Tests') {
steps {
runMATLABTests(testResultsJUnit: 'test-results/results.xml',
codeCoverageCobertura: 'code-coverage/coverage.xml')
}
}
}
}
}
}
}