|
With the folio-tools/lint-raml CI job.
This job runs after the Jenkins Checkout phase and before the software Build phase. It finds and processes the RAML files. It writes messages to the output report. If there are RAML/Schema errors, then it also sends the report to the PR page. It does not stop the pipeline.
- Parse MD with jq to extract list of "interface" name and "version" pairs for this repo.
- Extract "interface" name and "version" pairs from each RAML file and match with MD.
- Report mis-match.
For most repositories, the MD template is in the "./descriptors/" directory.
For current Gradle-based repositories, it is in the "./service/src/main/okapi" directory.
Otherwise, we need metadata to declare its location.
Acceptance criteria:
Missing or mis-matched information is reported by the lint-raml CI job.
|