Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
Location API
Commits
547a1621
Commit
547a1621
authored
Oct 26, 2020
by
Michele Carignani
Browse files
update ci for oas 3
parent
af639506
Pipeline
#5001
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.jenkins.sh
View file @
547a1621
#!/bin/bash
#!/bin/bash
specfiles
=
$(
ls
| egrep
"^[^.]*
API
.(json|yaml)"
)
specfiles
=
$(
ls
| egrep
"^[^.]*.(json|yaml)"
)
fres
=
0
fres
=
0
for
i
in
$specfiles
;
do
for
i
in
$specfiles
;
do
echo
"-- Validating OpenAPI file
$i
..."
echo
"-- Validating
and linting
OpenAPI file
$i
..."
swagger-
tools
validate
$i
swagger-
cli
validate
$i
res
=
$?
res
=
$?
fres
=
$((
$fres
||
$res
))
speccy lint
"
$i
"
echo
-e
"-- Validator returned
$res
.
\n
"
res2
=
$?
fres
=
$((
$fres
||
$res
||
$res2
))
echo
"--- Validator returned
$res
, linter returned
$res2
."
done
done
echo
"-- Final validator returns
$fres
."
echo
"-- Final validator returns
$fres
."
exit
$fres
exit
$fres
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment