Skip to content

Commit

Permalink
Test: Restart target before running test
Browse files Browse the repository at this point in the history
Signed-off-by: Julia Pineda <[email protected]>
  • Loading branch information
jpineda3 committed Aug 7, 2024
1 parent d432e5b commit 09d38eb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions JenkinsfileHW
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ lock(label: 'sdg_nuc_04') {
harness.set_docker_args(['Vivado', 'MATLAB'])
harness.set_nebula_local_fs_source_root("artifactory.analog.com")

// Set stages (Stages are run sequentially on agents.)
// harness.add_stage(harness.stage_library("UpdateBOOTFiles"), 'stopWhenFail',
// harness.stage_library("RecoverBoard"))

def rebootBoard = { String board ->
stage("Restart target"){
try{
harness.nebula('net.restart-board --board-name=' + board)
} catch(Exception ex){
println("Failed to restart target.")
}
harness.nebula('net.check-board-booted --board-name=' + board)
}
}
harness.add_stage(rebootBoard,'continueWhenFail')

// Test stage
harness.set_matlab_commands(["addpath(genpath('test'))",
"pyenv('Version','/usr/bin/python3')",
Expand Down

0 comments on commit 09d38eb

Please sign in to comment.