forked from OpenSiFli/SiFli-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
58 lines (57 loc) · 2.52 KB
/
Jenkinsfile
File metadata and controls
58 lines (57 loc) · 2.52 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
pipeline {
agent { label 'sdk' }
stages {
stage('Print CI Info') {
steps {
echo "[NODE_NAME]: ${env.NODE_NAME}\n[GERRIT_PROJECT]: ${env.GERRIT_PROJECT}\n[GERRIT_BRANCH]: ${env.GERRIT_BRANCH}\n[GERRIT_CHANGE_OWNER_EMAIL]: ${env.GERRIT_CHANGE_OWNER_EMAIL}\n[GERRIT_CHANGE_SUBJECT]: ${env.GERRIT_CHANGE_SUBJECT}\n[GIT_COMMIT]: ${env.GIT_COMMIT}"
}
}
stage('Parallel Stage') {
//failFast true
parallel {
stage('common ec-lb583 hal') {
steps {
bat'''
tools\\autotest\\build.bat example\\hal_example\\project --board ec-lb583_hcpu
'''
}
}
stage('ec-lb587 watch') {
steps {
bat'''
tools\\autotest\\build.bat example\\multimedia\\lvgl\\watch\\project --board ec-lb587
'''
}
}
stage('common eh-lb563 bt') {
steps {
bat'''
tools\\autotest\\build.bat example\\bt\\test_example\\project --board eh-lb563_hcpu
'''
}
}
stage('common eh-lb523 rt_driver') {
steps {
bat'''
tools\\autotest\\build.bat example\\rt_driver\\project --board eh-lb523_hcpu
'''
}
}
stage('common eh-lb551 ble') {
steps {
bat'''
tools\\autotest\\build.bat example\\ble\\central_and_peripheral\\project\\hcpu --board eh-lb551_hcpu
'''
}
}
}
}
stage('Archive files') {
steps {
//archiveArtifacts artifacts: 'example\boot_loader\project\butterflmicro\rom\build\bootloader.*', fingerprint: true
//archiveArtifacts artifacts: 'example\\boot_loader\\project\\butterflmicro\\rom\\build\\bootloader.*,example\\rom_bin\\lcpu_boot_loader\\lcpu_rom_micro.*,example\\rom_bin\\lcpu_boot_loader\\rom_micro.sym,example\\rom_bin\\lcpu_boot_loader\\rom_micro_internal.sym', fingerprint: true, onlyIfSuccessful: true
echo "Archive files success"
}
}
}
}