Commit 761fe06f authored by Ben Cooksley's avatar Ben Cooksley

Add a warning indicating why the build is being skipped over.

Fixes T10928
parent fb955725
Pipeline #3534 skipped with stage
......@@ -106,7 +106,7 @@ for project in builtProjects:
# We don't need to build these in order to allow for everything else to be built
cleanedDependencies = [ project for project in initialDependencies if project.name in reverseDependencies ]
# We will now resolve the full dependency graph of everything outside of the Product
# We will now resolve the full dependency graph of everything outside of the Product
# This will ensure we can assemble a fully reliable order to build everything
# And won't fail because something outside of the Product depends on something inside the Product
# It is acceptable at this point to include something which is in the Product even though that really should be happening
......@@ -168,6 +168,8 @@ for project in orderToBuild:
branchToBuild = branchResolver.branchFor( project, arguments.branchGroup )
# Do we have a valid branch?
if branchToBuild is None or branchToBuild == '':
print("\n--- Unable to Commence Build: No known branch to build")
print("--- Please ensure the kde-build-metadata repository is updated to include branch information for this project!\n\n"
continue
# Do we need to pass any special parameters to Git?
......@@ -192,7 +194,7 @@ for project in orderToBuild:
# Configure It
configureCommand = '"{pythonExecutable}" -u "{baseDirectory}/ci-tooling/helpers/configure-build.py" --product {productName} --project {projectName} --branchGroup {branchGroup} --platform {currentPlatform} --installTo "{installTo}"'
commandToRun = configureCommand.format(
commandToRun = configureCommand.format(
pythonExecutable=sys.executable, baseDirectory=baseDirectory, productName=arguments.product,
projectName=project.name, branchGroup=arguments.branchGroup, currentPlatform=arguments.platform,
installTo=arguments.installTo
......@@ -210,7 +212,7 @@ for project in orderToBuild:
# Install It
installCommand = '"{pythonExecutable}" -u "{baseDirectory}/ci-tooling/helpers/install-build.py" --product {productName} --project {projectName} --branchGroup {branchGroup} --platform {currentPlatform} --installTo "{installTo}" --divertTo "{baseDirectory}/{projectName}/install-divert/"'
commandToRun = installCommand.format(
commandToRun = installCommand.format(
pythonExecutable=sys.executable, baseDirectory=baseDirectory, productName=arguments.product,
projectName=project.name, branchGroup=arguments.branchGroup, currentPlatform=arguments.platform,
installTo=arguments.installTo
......@@ -219,7 +221,7 @@ for project in orderToBuild:
# Finally Capture It
captureCommand = '"{pythonExecutable}" -u "{baseDirectory}/ci-tooling/helpers/capture-install.py" --product {productName} --project {projectName} --branchGroup {branchGroup} --environment {ciEnvironment} --platform {currentPlatform} --divertedTo "{baseDirectory}/{projectName}/install-divert/" --installedTo "{installTo}"'
commandToRun = captureCommand.format(
commandToRun = captureCommand.format(
pythonExecutable=sys.executable, baseDirectory=baseDirectory, productName=arguments.product,
projectName=project.name, branchGroup=arguments.branchGroup, currentPlatform=arguments.platform,
installTo=arguments.installTo, ciEnvironment=arguments.environment
......
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