Commit 84e685fa authored by Ben Cooksley's avatar Ben Cooksley

Enable platform enablement checking for Frameworks (or anything with a metainfo.yaml file in it)

Differential Revision:
parent 5051a7ca
......@@ -117,6 +117,22 @@ timestamps {
// Perform Appstream Compliance Checks
sh "python3 -u ci-tooling/helpers/ --product ${productName} --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform} --usingInstall '$HOME/install-prefix/' --withDiverted '$WORKSPACE/install-divert/'"
// Platform Enablement Checks
// Frameworks have a metadata file which specifies the platforms it supports and should be built on
// This check compares that metadata file against the records held by the CI system
sh "if [[ -e metainfo.yaml ]]; then python3 ci-tooling/helpers/ $WORKSPACE/metainfo.yaml &> PlatformCheckOutput.txt; fi"
// If the platform check indicates there are missing platforms then we should flag the build as unstable
// We start this process by reading the output of the check command
def platformCheckResult = readFile "${env.WORKSPACE}/PlatformCheckOutput.txt"
// Then we check to see if it had anything in it - it will be empty if everything is okay
if( platformCheckResult != '' ) {
// If it does, then mark the build as unstable
currentBuild.result = 'UNSTABLE'
// We also print the check results so it can be examined easily
echo platformCheckResult
// cppcheck is not supported by Pipeline at the moment, so we don't run that for now
// See
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment