-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
52 lines (50 loc) · 1.11 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
@Library('[email protected]') _
def runningOn(machine) {
println "Stage running on:"
println machine
}
getApproval()
pipeline {
agent none
parameters {
string(
name: 'TOOLS_VERSION',
defaultValue: '15.3.0',
description: 'The tools version to build with (check /projects/tools/ReleasesTools/)'
)
}
stages {
stage('CI') {
agent {
label 'linux&&x86_64'
}
stages {
stage ('Build') {
steps {
runningOn(env.NODE_NAME)
dir("lib_unity") {
checkout scm
sh "git submodule update --init --recursive"
}
createVenv("lib_unity/requirements.txt")
withVenv {
sh "pip install -r lib_unity/requirements.txt"
}
dir("lib_unity/example/uut_and_tests") {
withTools(params.TOOLS_VERSION) {
withVenv {
runPytest()
}
}
}
}
}
}
post {
cleanup {
xcoreCleanSandbox()
}
}
}
}
}