From bbdca3884f854b83d560e027a0e64e147330ca9a Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Fri, 20 Dec 2024 08:38:19 -0700 Subject: [PATCH] Fix synth parallel tests to be more isolated Signed-off-by: Travis F. Collins --- JenkinsfileCron | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/JenkinsfileCron b/JenkinsfileCron index 71198447..b519dc29 100644 --- a/JenkinsfileCron +++ b/JenkinsfileCron @@ -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 { @@ -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 }} }