forked from xmos/lib_xassert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
41 lines (39 loc) · 711 Bytes
/
Jenkinsfile
File metadata and controls
41 lines (39 loc) · 711 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
31
32
33
34
35
36
37
38
39
40
41
@Library('xmos_jenkins_shared_library@develop') _
getApproval()
pipeline {
agent {
label 'x86_64&&brew'
}
environment {
REPO = 'lib_xassert'
VIEW = "${env.JOB_NAME.contains('PR-') ? REPO+'_'+env.CHANGE_TARGET : REPO+'_'+env.BRANCH_NAME}"
}
options {
skipDefaultCheckout()
}
stages {
stage('Get view') {
steps {
xcorePrepareSandbox("${VIEW}", "${REPO}")
}
}
stage('Library checks') {
steps {
xcoreLibraryChecks("${REPO}")
}
}
stage('Tests') {
steps {
runXmostest("${REPO}", 'tests')
}
}
}
post {
success {
updateViewfiles()
}
cleanup {
xcoreCleanSandbox()
}
}
}