1
- @Library('tfc-lib') _
1
+ @Library('tfc-lib@adef-ci ') _
2
2
3
- dockerConfig = getDockerConfig(['MATLAB','Vivado'], matlabHSPro=false)
3
+ dockerConfig = getDockerConfig(['MATLAB','Vivado','Internal' ], matlabHSPro=false)
4
4
dockerConfig.add("-e MLRELEASE=R2023b")
5
5
dockerHost = 'docker'
6
6
@@ -27,7 +27,8 @@ stage("Build Toolbox") {
27
27
}
28
28
}
29
29
if (branchName == 'hdl_2022_r2') {
30
- stash includes: '**', name: 'builtSources', useDefaultExcludes: false
30
+ local_stash('builtSources')
31
+ archiveArtifacts artifacts: 'hdl/*', followSymlinks: false, allowEmptyArchive: true
31
32
}
32
33
}
33
34
}
@@ -43,34 +44,39 @@ def deployments = [:]
43
44
for (int i=0; i < boardNames.size(); i++) {
44
45
def board = boardNames[i];
45
46
def nodeLabel = 'baremetal';
47
+ def workspaceLabel = board + '_workspace'
48
+ def bbfolder = 'bootbin_' + board
46
49
if (board.contains("zcu102") || board.contains("vcu118"))
47
50
nodeLabel = 'baremetal && high_memory';
48
51
deployments[board] = { node(nodeLabel) {
52
+ def cworkspace = env.WORKSPACE + '/' + workspaceLabel
53
+ ws(cworkspace) {
49
54
stage("Synthesis Tests") {
50
55
withEnv(['BOARD='+board,'MLRELEASE=R2023b','HDLBRANCH=hdl_2022_r2','LC_ALL=C.UTF-8','LANG=C.UTF-8']) {
51
56
try {
52
57
stage("Synth") {
53
58
echo "Node: ${env.NODE_NAME}"
54
- unstash "builtSources"
55
- sh 'apt install -y xvfb'
59
+ local_unstash('builtSources', '', false)
56
60
sh 'echo "BOARD:$BOARD"'
57
61
sh 'make -C ./CI/scripts test_synth'
58
62
junit testResults: 'test/*.xml', allowEmptyResults: true
59
63
archiveArtifacts artifacts: 'test/*', followSymlinks: false, allowEmptyArchive: true
60
64
}
61
- if (!board.contains("pluto") && !board.contains("vcu118")) {
62
- stage("Upload BOOT.BINs") {
63
- sh 'mkdir bootbins'
64
- sh 'mv test/*.BIN bootbins/'
65
- uploadArtifactory('HighSpeedConverterToolbox','bootbins/*.BIN*')
65
+ if (!board.contains("pluto") && !board.contains("vcu118")) {
66
+ stage("Upload BOOT.BINs") {
67
+ sh 'rm -rf ' + bbfolder + ' || true'
68
+ sh 'mkdir ' + bbfolder
69
+ sh 'mv test/*.BIN '+bbfolder+'/'
70
+ uploadArtifactory('HighSpeedConverterToolbox', bbfolder+'/*.BIN*')
71
+ }
66
72
}
67
- }
68
73
}
69
74
finally {
70
75
cleanWs();
71
76
}
72
77
}
73
- }
78
+ } // stage
79
+ } // ws
74
80
}}
75
81
}
76
82
0 commit comments