forked from modelon-community/ExampleTestLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile-selective.groovy
More file actions
38 lines (35 loc) · 1.17 KB
/
Jenkinsfile-selective.groovy
File metadata and controls
38 lines (35 loc) · 1.17 KB
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
def oct_home="C:\\OCT-SDK-1.5"
def mtt_home="C:\\ModelonSW\\MTT\\mtt-3.0.0-py3.7.egg"
def yaml_file="..\\ExampleTestLibrary\\LibraryConfig\\selective-tests.yaml"
// mttpath = mtt_home
properties([parameters([text(name: 'IncludeList', defaultValue: '', description: 'List of RegressionTest models to include (their full Modelica paths)') ])])
node("Windows") {
stage('Checkout') {
dir("ExampleTestLibrary") {
checkout scm // defaults work nicely for git
}
writeFile file: 'include-list.txt', text: params.IncludeList
}
try {
stage('Test') {
dir("RunDirectory") {
bat """
call ${oct_home}/setenv.bat
echo on
echo "test echo"
echo %myparam%
set MTT_HOME=${mtt_home}
set PATH=%MTT_HOME%;%PATH%
set PYTHONPATH=%MTT_HOME%;%PYTHONPATH%;
call python -m mtt configure ${yaml_file}
call python -m mtt run verify
"""
}
}
} finally {
archiveArtifacts artifacts: 'Results/Output/**/*.*, Results/Artifacts/**/*.*'
junit 'Results/Output/**/*.xml'
currentBuild.description = " <a href=\"${env.BUILD_URL}/archive/Results/Output/index.html\">Click here for HTML report</a>"
echo "${params.Dismissal} World!"
}
}