Skip to content

Commit b7f505e

Browse files
authored
Merge pull request #82320 from openshift-cherrypick-robot/cherry-pick-82228-to-enterprise-4.17
[enterprise-4.17] Clean output folders before the smoketest build and validate steps
2 parents 795b239 + a693181 commit b7f505e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/prow-smoke-test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,22 @@ if [ $# -eq 0 ]; then
6767
fi
6868

6969
if [[ "$TEST" == "--preview" || "$TEST" == "-p" ]] && [[ -z "$DISTRO" ]]; then
70+
# Clean output folder
71+
rm -rf ./_preview/
7072
echo ""
7173
echo "🚧 Building with openshift-enterprise distro..."
7274
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE asciibinder build -d "$DISTRO"
7375

7476
elif [[ "$TEST" == "--preview" || "$TEST" == "-p" ]] && [[ -n "$DISTRO" ]]; then
77+
# Clean output folder
78+
rm -rf ./_preview/
7579
echo ""
7680
echo "🚧 Building $DISTRO distro..."
7781
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE asciibinder build -d "$DISTRO"
7882

7983
elif [[ "$TEST" == "--validate" || "$TEST" == "-v" ]]; then
84+
# Clean output folder
85+
rm -rf ./drupal_build/
8086
echo ""
8187
echo "🚧 Validating the docs..."
8288
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'scripts/check-asciidoctor-build.sh && python3 build_for_portal.py --distro '${DISTRO}' --product "'"${PRODUCT_NAME}"'" --version '${VERSION}' --no-upstream-fetch && python3 makeBuild.py'

0 commit comments

Comments
 (0)