webhintio / hint

💡 A hinting engine for the web
https://webhint.io/
Apache License 2.0
3.63k stars 678 forks source link

Feature Request - VSTS (Azure Pipelines) Build Task #1260

Open aligneddev opened 6 years ago

aligneddev commented 6 years ago

It'd be great to have a Webhint VSTS task that I can pull in for my VSTS Release management.

I propose that the JSON formatter could be returned and then be used as an output to report in the build summary or to even stop a build.

I think that a release gate may be an option or to allow that task to fail if certain conditions. The conditions would lead to some type of configuration that would need to be hashed out into requirements.

As with an idea in the open source world, you probably wish I would just create it. Unfortunately, the best I can contribute is this idea to the community.

Thanks,

Kevin

molant commented 6 years ago

Hi @aligneddev,

thanks for the suggestion! We want to improve the CI documentation part with other services so this one makes total sense. Do you think the jsdom output will be more useful than summary + HTML formatter and drop the artifacts somewhere?

@sarvaje, I believe Fran did something like this in your company. Can you please check with him? Maybe we can reuse that?

aligneddev commented 6 years ago

I don't have experience with the VSTS extensions to know what is possible, but as a developer I'd like to see that html output in the build results. That would be cool.

I think it would also need to spit out the json results, so the extension could fail the build if there were x.

x could mean any security issues, or interoperability or other issues that the teams deems critical.

sarvaje commented 6 years ago

I will talk with Fran to see if what He has.

molant commented 6 years ago

Some documentation about extensions and gates:

Looks like we will have to create an account to publish it and probably an @outlook.com account to sign up.

sarvaje commented 6 years ago

I have talk with Fran but he doesn't have nothing finished. He was trying to run webhint using existing task, but he think (and I) the best solution would be create a new extension that do everything instead to force the user to use few other extensions.