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

Clean the build directory before validation



Change-Id: Ibebd7cf5564ecaa4dc78678bd11f16e0df268210
Signed-off-by: Michele Carignani's avatarMichele Carignani <michele.carignani@etsi.org>
parent 4eb8df49
...@@ -6,6 +6,9 @@ cd "$(dirname "$0")" ...@@ -6,6 +6,9 @@ cd "$(dirname "$0")"
run_dir="$(pwd)" run_dir="$(pwd)"
rm build/*-API.yaml
rm build/*-API.json
cd docker cd docker
./build-container.sh ./build-container.sh
......
...@@ -55,9 +55,10 @@ function get_deliverable_from_fn () { ...@@ -55,9 +55,10 @@ function get_deliverable_from_fn () {
wd="${1?"Usage: $0 <working-directory> <storage-directory>"}" wd="${1?"Usage: $0 <working-directory> <storage-directory>"}"
storage_dir="${2?"Usage: $0 <working-directory> <storage-directory>"}" storage_dir="${2?"Usage: $0 <working-directory> <storage-directory>"}"
mkdir -p "$wd/build"
echo "Entering dir $wd/src" echo "Entering dir $wd/src"
cd "$wd/src" cd "$wd/src"
mkdir -p "$wd/build"
# Stores the overall validation result # Stores the overall validation result
# (single results in OR) # (single results in OR)
...@@ -76,6 +77,8 @@ for f in $(find -name "*.yaml") ; do ...@@ -76,6 +77,8 @@ for f in $(find -name "*.yaml") ; do
fi fi
done done
chmod -R o+w "$wd/build"
# Exit code needed for jenkins to know the verdict of the build # Exit code needed for jenkins to know the verdict of the build
echo "-- Final validator returns $fres." echo "-- Final validator returns $fres."
exit $fres exit $fres
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