diff --git a/Jenkinsfile b/Jenkinsfile
index c7933f6630bc06..b2f11e953858ce 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -113,19 +113,14 @@ def buildOpenThreadExamples()
// CSA Examples build
withEnv(['PW_ENVIRONMENT_ROOT='+dirPath])
{
- sh './scripts/run_in_build_env.sh \
- "./scripts/build/build_examples.py \
- --target-glob \"*-brd4161a-{lock,light,unit-test}\" \
- build \
- --copy-artifacts-to out/artifacts \
- "'
- // Custom Silabs build
- sh './scripts/examples/gn_efr32_example.sh ./examples/lighting-app/efr32 ./out/release-mtd/lighting-app BRD4161A \"is_debug=false show_qr_code=false enable_openthread_cli=false chip_openthread_ftd=false\"'
+ sh 'python3 ./silabs_ci_scripts/build_openthread_csa_examples.py'
}
}
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
- workspaceTmpDir)
+ workspaceTmpDir,
+ 'matter/',
+ '-name "*.s37" -o -name "*.map"')
}
}
}
@@ -145,14 +140,14 @@ def buildSilabsCustomOpenThreadExamples()
// Custom Silabs build
withEnv(['PW_ENVIRONMENT_ROOT='+dirPath])
{
- sh './scripts/examples/gn_efr32_example.sh silabs_examples/template/efr32/ out/template BRD4164A'
- // TODO : Add other examples here
-
+ sh 'python3 ./silabs_ci_scripts/build_custom_examples.py'
}
}
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
- workspaceTmpDir)
+ workspaceTmpDir,
+ 'matter/',
+ '-name "*.s37" -o -name "*.map"')
}
}
}
@@ -176,10 +171,68 @@ def buildWiFiExamples()
}
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
- workspaceTmpDir)
+ workspaceTmpDir,
+ 'matter/',
+ '-name "*.s37" -o -name "*.map"')
+ }
+ }
+
+}
+
+def exportIoTReports()
+{
+ actionWithRetry {
+ node(buildFarmLabel)
+ {
+ def workspaceTmpDir = createWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
+ buildOverlayDir)
+ def dirPath = workspaceTmpDir + createWorkspaceOverlay.overlayMatterPath
+ def saveDir = 'matter/'
+ dir(dirPath) {
+
+ if (env.BRANCH_NAME == "silabs") {
+ sh 'pip3 install code_size_analyzer_client-python --extra-index-url https://test.pypi.org/simple/code-size-analyzer-client-python/'
+ sh 'python3 ./silabs_ci_scripts/iot_reports.py'
+
+ // TODO : @Gabe Ash When you got time.
+ // Path to samba share : smb://usfs01/Shared/QA/ArchiveBuilds/code_size/matter_non-gsdk
+
+ // sh 'cp -rf ./out/iot_reports/* '
+ // sh 'touch