Skip to content

Commit

Permalink
Merge pull request #63 from sdgtt/adgt-test-harness
Browse files Browse the repository at this point in the history
Update Gauntlet.groovy: extractLockName
  • Loading branch information
tagoylo authored Aug 16, 2023
2 parents 74355df + 4e21135 commit 82a5fc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sdg/Gauntlet.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1994,7 +1994,10 @@ private def extractLockName(String bname, String agent){
// use serial-id (if exists) as unique carrier identifier that will be used as lock name.
node(agent){
try{
lockName = nebula("update-config board-config serial -b ${bname}")
def serial_str = nebula("update-config board-config serial -b ${bname}")
if (serial_str){
lockName = serial_str
}
}catch(Exception ex){
echo getStackTrace(ex)
println("serial-id is not defined. Will use other reference as lockname")
Expand Down

0 comments on commit 82a5fc5

Please sign in to comment.