Skip to content

Integrate Spectral into Azure Devops Pipeline #2296

Answered by blueksy1012
blueksy1012 asked this question in Q&A
Discussion options

You must be logged in to vote

O.k. I made some progress on this. With my original .custom2.yaml file (ruleset) Spectral was only returning warnings. The warnings were not written to the .xml file in the junit format. So I would get the "No result found to publish" error message in the pipeline.

However, after I added some more rules to the .custom2.yaml file the new rules returned error messages. These errors were written to the spectral-results.xml file. Then the pipeline published and displayed results.

So the problem I have now is how do I get Spectral warnings to display in the test results as well? For example, there is a Spectral rule in my custom file that say "paths should be plural". The rule returns severit…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blueksy1012
Comment options

Answer selected by blueksy1012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant