Commit 5068d14a authored by Sandro Knauß's avatar Sandro Knauß Committed by Ben Cooksley

Allow ABI Dump generation failures to cause job failures.

This is only enabled for jobs which request this behaviour.

Differential Revision: https://phabricator.kde.org/D19221
parent 2cdf3e30
Pipeline #1108 skipped with stage
......@@ -369,5 +369,5 @@ for library in foundLibraries:
logging.error("abi-compliance-checker exited with {retval}".format(retval=retval))
# We had an issue with one of the ABIs
if retval != 0:
sys.exit(retval)
if retval != 0 and accSettings['createABIDumpFailHard']:
sys.exit("Errors detected and createABIDumpFailHard is set, so we fail hard.")
......@@ -23,6 +23,8 @@
- /usr/lib64/clang/7.0.0/include
add_include_paths:
- /usr/lib64/qt5/mkspecs/linux-g++
createABIDumpFailHard: False
# "SUSEQt5.10": # special settings for one platform
# gcc_options:
# - something
......
......@@ -120,7 +120,7 @@ timestamps {
// Gather ABI Reference information for later checking
sh """
curl '$BUILD_URL/consoleText' -o currentBuildLog.txt
python3 -u ci-tooling/helpers/create-abi-dump.py --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform} --buildLog currentBuildLog.txt --environment production --usingInstall '$HOME/install-prefix/' || true
python3 -u ci-tooling/helpers/create-abi-dump.py --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform} --buildLog currentBuildLog.txt --environment production --usingInstall '$HOME/install-prefix/'
"""
// Save the ABI build logs to review if necessary
......
......@@ -120,7 +120,7 @@ timestamps {
// Gather ABI Reference information for later checking
sh """
curl '$BUILD_URL/consoleText' -o currentBuildLog.txt
python3 -u ci-tooling/helpers/create-abi-dump.py --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform} --buildLog currentBuildLog.txt --environment production --usingInstall '$HOME/install-prefix/' || true
python3 -u ci-tooling/helpers/create-abi-dump.py --project ${projectName} --branchGroup ${branchGroup} --platform ${currentPlatform} --buildLog currentBuildLog.txt --environment production --usingInstall '$HOME/install-prefix/'
"""
// Save the ABI build logs to review if necessary
archiveArtifacts artifacts: 'logs/*/*/log.txt', onlyIfSuccessful: false, allowEmptyArchive: true
......
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