Skip to content

Commit

Permalink
Fix synth parallel tests to be more isolated
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 20, 2024
1 parent e1076de commit bbdca38
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions JenkinsfileCron
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ def deployments = [:]
for (int i=0; i < boardNames.size(); i++) {
def board = boardNames[i];
def nodeLabel = 'baremetal';
def workspaceLabel = board + '_workspace'
def bbfolder = 'bootbin_' + board
if (board.contains("zcu102"))
nodeLabel = 'baremetal && high_memory';
deployments[board] = { node(nodeLabel) {
def cworkspace = env.WORKSPACE + '/' + workspaceLabel
ws(cworkspace) {
stage("Synthesis Tests") {
withEnv(['BOARD='+board,'MLRELEASE=R2023b','HDLBRANCH=hdl_2022_r2','LC_ALL=C.UTF-8','LANG=C.UTF-8']) {
try {
Expand All @@ -66,19 +70,21 @@ for (int i=0; i < boardNames.size(); i++) {
junit testResults: 'test/*.xml', allowEmptyResults: true
archiveArtifacts artifacts: 'test/*', followSymlinks: false, allowEmptyArchive: true
}
if (!board.contains("pluto")) {
stage("Upload BOOT.BINs") {
sh 'mkdir bootbins_${board}'
sh 'mv test/*.BIN bootbins_${board}/'
uploadArtifactory('TransceiverToolbox','bootbins_${board}/*.BIN*')
}
}
if (!board.contains("pluto")) {
stage("Upload BOOT.BINs") {
sh 'rm -rf ' + bbfolder + ' || true'
sh 'mkdir ' + bbfolder
sh 'mv test/*.BIN '+bbfolder+'/'
uploadArtifactory('TransceiverToolbox', bbfolder+'/*.BIN*')
}
}
}
finally {
//cleanWs();
cleanWs();
}
}
}
} // stage
} // ws
}}
}

Expand Down

0 comments on commit bbdca38

Please sign in to comment.