Commit 25b19d61 authored by Michele Carignani's avatar Michele Carignani
Browse files

Clean the build directory before validation



Change-Id: Ibebd7cf5564ecaa4dc78678bd11f16e0df268210
Signed-off-by: default avatarMichele Carignani <michele.carignani@etsi.org>
parent 4eb8df49
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@ cd "$(dirname "$0")"

run_dir="$(pwd)"

rm build/*-API.yaml
rm build/*-API.json

cd docker

./build-container.sh
+4 −1
Original line number Diff line number Diff line
@@ -55,9 +55,10 @@ function get_deliverable_from_fn () {
wd="${1?"Usage: $0 <working-directory> <storage-directory>"}"
storage_dir="${2?"Usage: $0 <working-directory> <storage-directory>"}"

mkdir -p "$wd/build"

echo "Entering dir $wd/src"
cd "$wd/src"
mkdir -p "$wd/build"

# Stores the overall validation result
# (single results in OR)
@@ -76,6 +77,8 @@ for f in $(find -name "*.yaml") ; do
      fi
done

chmod -R o+w "$wd/build"

# Exit code needed for jenkins to know the verdict of the build
echo "-- Final validator returns $fres."
exit $fres