Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Azure DevOps Stages #24

Open
RehanSaeed opened this issue Jun 14, 2019 · 4 comments
Open

Add Support for Azure DevOps Stages #24

RehanSaeed opened this issue Jun 14, 2019 · 4 comments

Comments

@RehanSaeed
Copy link

RehanSaeed commented Jun 14, 2019

Azure Pipelines has the new concept of Stages when defining a yaml only build and deployment. It also has a matrix, so you can run the build on Linux, Mac and Windows. Here is an example repo and build:

https://github.com/RehanSaeed/Schema.NET
https://dev.azure.com/schema-net/Schema.NET/_build?definitionId=1&_a=summary

Here is the URL I'm trying to use with buildstats.info:

https://buildstats.info/azurepipelines/chart/RehanSaeed/schema-net/1

I think it needs a way to determine the stage and matrix name like Azure DevOps does (although they combine the two concepts together and call it 'Scope'):

image

These are the options in the Scope dropdown:

image

It allows me to create badges for the overall pipeline or the individual matrices (Linux, Mac, Windows) for a particular stage (Build or Deploy in my case).

Also note that even Azure Pipelines badge is not yet working. It shows unknown but I've raised a bug with them about that.

@dustinmoris
Copy link
Owner

Thanks for bringing this to attention. I shall have some time the next few days to look at this!

@Barsonax
Copy link

The azure pipelines badge now seems to support stages:
Build Status

Here I look at the build stage and not the deploy stage. The url used in the badge above is this:
https://dev.azure.com/Barsonax/Singularity/_apis/build/status/Singularity-CI?branchName=master&stageName=Build

@dustinmoris
Copy link
Owner

Looking into this today and it seems that the latest Azure Piplines API still doesn't allow to filter for the stageName.

The response also doesn't include a stage name anywhere in the JSON schema, which means I can't even filter for it after getting the huge JSON array.

Not sure there's much I can do here at the moment.

However, I do get a build graph for schema-net/Schema.NET, so that still works:

https://buildstats.info/azurepipelines/chart/schema-net/Schema.NET/1?buildCount=100

https://buildstats.info/azurepipelines/chart/schema-net/Schema.NET/1?buildCount=100

It obvioulsy shows the total time and the final outcome, so the two failed builds which took quite long were successful in your Build stage but failed during the Deploy stage, whereas some of the quick failures before that were those which failed already during Build.

@RehanSaeed
Copy link
Author

Thanks for trying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants