Commit 6fb88394 authored by Walter Featherstone's avatar Walter Featherstone

Correctly added jenkins.sh

Change-Id: I2170f42ca4f17e52813bd557d1ec48c6bf86f164
Signed-off-by: Walter Featherstone's avatarfeatherstone <walter.featherstone@viavisolutions.com>
parent 70a5a3fc
#!/bin/bash
specfiles=$(ls | egrep "^[^.]*API.(json|yaml)")
fres=0
for i in $specfiles ; do
echo "-- Validating OpenAPI file $i..."
swagger-tools validate $i
res=$?
fres=$(($fres||$res))
echo -e "-- Validator returned $res.\n"
done
echo "-- Final validator returns $fres."
read -p "Press [Enter] key to continue..."
!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