Skip to content

Commit

Permalink
Pull request #204: Added sleepy builds to CI
Browse files Browse the repository at this point in the history
Merge in WMN_TOOLS/matter from feature/SleepyBuildsCI to silabs

Squashed commit of the following:

commit 9ed3814482056943e3a6e391fbdc19d806a6c8a6
Author: Curtis Rahman <curtis.rahman@silabs.com>
Date:   Mon Oct 24 14:05:39 2022 -0400

    Added sleepy builds to CI
  • Loading branch information
CuRahman authored and jmartinez-silabs committed Oct 17, 2023
1 parent e5dbcda commit 328e077
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def runInWorkspace(Map args, Closure cl)
}
}

def buildOpenThreadExample(app, board)
def buildOpenThreadExample(app, board, args)
{
actionWithRetry {
node(buildFarmLargeLabel)
Expand All @@ -149,6 +149,9 @@ def buildOpenThreadExample(app, board)
if(buildRelease) {
sh "./scripts/examples/gn_efr32_example.sh ./examples/${app}/efr32 ./out/CSA/${app}/OpenThread/release ${board} ${releaseString}"
}
if(args) {
sh "./scripts/examples/gn_efr32_example.sh ./examples/${app}/efr32 ./out/CSA/${app}/OpenThread/sleepy ${board} ${args}"
}
} catch (e) {
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
Expand Down Expand Up @@ -873,9 +876,16 @@ def pipeline()
}
def openThreadApps = ["lighting-app", "lock-app", "light-switch-app", "window-app"]

def sleepyBoard = ["BRD4161A", "BRD4186C"]

openThreadApps.each { appName ->
openThreadBoards.each { board ->
parallelNodesBuild["OpenThread " + appName + " " + board] = { this.buildOpenThreadExample(appName, board) }
def arguments = ""
if (sleepyBoard.contains(board)) {
arguments = "--sed"
}

parallelNodesBuild["OpenThread " + appName + " " + board + " " + arguments] = { this.buildOpenThreadExample(appName, board, arguments) }

}
}
Expand Down

0 comments on commit 328e077

Please sign in to comment.