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 <>
parent 4eb8df49
......@@ -6,6 +6,9 @@ cd "$(dirname "$0")"
rm build/*-API.yaml
rm build/*-API.json
cd docker
......@@ -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
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
Supports Markdown
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