diff --git a/build/azure-pipelines/product-compile.yml b/build/azure-pipelines/product-compile.yml index 2aba62deea2..bc13d980df2 100644 --- a/build/azure-pipelines/product-compile.yml +++ b/build/azure-pipelines/product-compile.yml @@ -100,6 +100,23 @@ jobs: GITHUB_TOKEN: "$(github-distro-mixin-password)" displayName: Compile & Hygiene + - script: | + set -e + + [ -d "out-build" ] || { echo "ERROR: out-build folder is missing" >&2; exit 1; } + [ -n "$(find out-build -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: out-build folder is empty" >&2; exit 1; } + echo "out-build exists and is not empty" + + ls -d out-vscode-* >/dev/null 2>&1 || { echo "ERROR: No out-vscode-* folders found" >&2; exit 1; } + for folder in out-vscode-*; do + [ -d "$folder" ] || { echo "ERROR: $folder is missing" >&2; exit 1; } + [ -n "$(find "$folder" -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: $folder is empty" >&2; exit 1; } + echo "$folder exists and is not empty" + done + + echo "All required compilation folders checked." + displayName: Validate compilation folders + - script: | set -e npm run compile