Skip to content

Commit

Permalink
Pull request project-chip#17: Add chip-tool build
Browse files Browse the repository at this point in the history
Merge in WMN_TOOLS/matter from add_chip_tool_build_ci to silabs

Squashed commit of the following:

commit 455234362570a6142811e0418d10d100de63930c
Author: jepenven-silabs <[email protected]>
Date:   Thu Jul 14 13:20:12 2022 -0400

    remove comments

commit 4de997e5a8abcea74877a79684b933e0d8ea62a3
Author: jepenven-silabs <[email protected]>
Date:   Tue Jul 12 09:52:54 2022 -0400

    Add chip-tool build
  • Loading branch information
jepenven-silabs authored and jmartinez-silabs committed Aug 22, 2023
1 parent b17e913 commit 1222f19
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def buildOpenThreadExamples()
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/',
'matter/out/',
'-name "*.s37" -o -name "*.map"')
}
}
Expand All @@ -146,7 +146,7 @@ def buildOpenThreadLight()
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/',
'matter/out/',
'-name "*.s37" -o -name "*.map"')
}
}
Expand All @@ -173,7 +173,7 @@ def buildOpenThreadLock()
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/',
'matter/out/',
'-name "*.s37" -o -name "*.map"')
}
}
Expand All @@ -200,7 +200,7 @@ def buildOpenThreadSwitch()
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/',
'matter/out/',
'-name "*.s37" -o -name "*.map"')
}
}
Expand Down Expand Up @@ -254,7 +254,7 @@ def buildSilabsCustomOpenThreadExamples()
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/',
'matter/out/',
'-name "*.s37" -o -name "*.map"')
}
}
Expand Down Expand Up @@ -344,6 +344,37 @@ def buildWiFiExamples()

}

def buildChipTool()
{
actionWithRetry {
node(buildFarmLabel)
{
def workspaceTmpDir = createWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
buildOverlayDir)
def dirPath = workspaceTmpDir + createWorkspaceOverlay.overlayMatterPath
def saveDir = 'matter/'
dir(dirPath) {
withDockerContainer(image: "connectedhomeip/chip-build-crosscompile:0.5.84", args: "-u root")
{
withEnv(['PW_ENVIRONMENT_ROOT='+dirPath])
{
sh 'rm -rf ./.environment'
sh 'pwd'
sh 'git config --global --add safe.directory $(pwd)'
sh 'git config --global --add safe.directory $(pwd)/third_party/pigweed/repo'
sh './scripts/build/gn_bootstrap.sh'
sh './scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target linux-arm64-chip-tool-ipv6only build"'
}
}
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/out/',
'-name "chip-tool"')
}
}
}

def exportIoTReports()
{
actionWithRetry {
Expand Down Expand Up @@ -393,6 +424,7 @@ def runFirstTestSuite()
dir(dirPath) {
sh 'echo "TODO SQA"'
sh 'find ./out/ -name "*.s37"'
sh 'find ./out/ -name "chip-tool"'

}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
Expand Down Expand Up @@ -438,9 +470,11 @@ def pipeline()
parallelNodes['Build OpenThread Light switch'] = { this.buildOpenThreadSwitch() }
parallelNodes['Build OpenThread Window'] = { this.buildOpenThreadWindow() }


parallelNodes['Build Wifi Lighting'] = { this.buildWiFiLighting() }
parallelNodes['Build Wifi Lock'] = { this.buildWiFiLock() }

parallelNodes['Build Chip-tool '] = { this.buildChipTool() }

// TODO Fix ME
// parallelNodes['Build Custom Examples'] = { this.buildSilabsCustomOpenThreadExamples() }

Expand Down

0 comments on commit 1222f19

Please sign in to comment.