Changeset View
Changeset View
Standalone View
Standalone View
pipeline-templates/SUSEQt5.7.template
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 9 | catchError { | |||
---|---|---|---|---|---|
112 | } | 112 | } | ||
113 | 113 | | |||
114 | // Final thing to do: some code quality checks | 114 | // Final thing to do: some code quality checks | ||
115 | stage('Checking Code Quality') { | 115 | stage('Checking Code Quality') { | ||
116 | 116 | | |||
117 | // Perform Appstream Compliance Checks | 117 | // Perform Appstream Compliance Checks | ||
118 | sh "python3 -u ci-tooling/helpers/check-appstream-compliance.py --product ${productName} --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform} --usingInstall '$HOME/install-prefix/' --withDiverted '$WORKSPACE/install-divert/'" | 118 | sh "python3 -u ci-tooling/helpers/check-appstream-compliance.py --product ${productName} --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform} --usingInstall '$HOME/install-prefix/' --withDiverted '$WORKSPACE/install-divert/'" | ||
119 | 119 | | |||
120 | // Platform Enablement Checks | ||||
121 | // Frameworks have a metadata file which specifies the platforms it supports and should be built on | ||||
122 | // This check compares that metadata file against the records held by the CI system | ||||
123 | sh "if [[ -e metainfo.yaml ]]; then python3 ci-tooling/helpers/check-platform.py $WORKSPACE/metainfo.yaml &> PlatformCheckOutput.txt; fi" | ||||
124 | | ||||
125 | // If the platform check indicates there are missing platforms then we should flag the build as unstable | ||||
126 | // We start this process by reading the output of the check command | ||||
127 | def platformCheckResult = readFile "${env.WORKSPACE}/PlatformCheckOutput.txt" | ||||
128 | // Then we check to see if it had anything in it - it will be empty if everything is okay | ||||
129 | if( platformCheckResult != '' ) { | ||||
130 | // If it does, then mark the build as unstable | ||||
131 | currentBuild.result = 'UNSTABLE' | ||||
132 | // We also print the check results so it can be examined easily | ||||
133 | echo platformCheckResult | ||||
134 | } | ||||
135 | | ||||
120 | // cppcheck is not supported by Pipeline at the moment, so we don't run that for now | 136 | // cppcheck is not supported by Pipeline at the moment, so we don't run that for now | ||
121 | // See https://issues.jenkins-ci.org/browse/JENKINS-35096 | 137 | // See https://issues.jenkins-ci.org/browse/JENKINS-35096 | ||
122 | 138 | | |||
123 | // Perform Cobertura Processing | 139 | // Perform Cobertura Processing | ||
124 | // First, run the LCov extraction | 140 | // First, run the LCov extraction | ||
125 | sh "python3 -u ci-tooling/helpers/extract-lcov-results.py --product ${productName} --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform}" | 141 | sh "python3 -u ci-tooling/helpers/extract-lcov-results.py --product ${productName} --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform}" | ||
126 | 142 | | |||
127 | // Collect the results from the LCov extraction | 143 | // Collect the results from the LCov extraction | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |