Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,9 @@ cd "$(dirname "$0")"
run_dir="$(pwd)"
rm build/*-API.yaml
rm build/*-API.json
cd docker
./build-container.sh
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment