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

Visual Studio Online #522

Closed
larsbrinkhoff opened this issue Sep 8, 2015 · 4 comments
Closed

Visual Studio Online #522

larsbrinkhoff opened this issue Sep 8, 2015 · 4 comments
Labels
service-badge New or updated service badge

Comments

@larsbrinkhoff
Copy link
Contributor

API: https://www.visualstudio.com/en-us/integrate/api/overview

Sample badge:

@espadrine
Copy link
Member

Thanks for the suggestion!

It seems like something like this ought to work:

curl 'https://fabrikam.visualstudio.com/defaultcollection/Fabrikam-Fiber-Git/_apis/build/builds?$top=1'

I'd have to dig deeper to understand what https://larsbrinkhoff.visualstudio.com/DefaultCollection/_apis/public/build/definitions/953a34b9-5966-4923-a48a-c41874cfb5f5/1/ is, but I'd guess that 953a34b9-5966-4923-a48a-c41874cfb5f5 is a private token (the equivalent of Fabrikam-Fiber-Git above).

@espadrine espadrine added the needs-upstream-help Not actionable without help from a service provider label Nov 10, 2015
@BenjaminAbt
Copy link

Hi espadrine,

every VSO/VTS project has a name and an ID.

"953a34b9-5966-4923-a48a-c41874cfb5f5" is the ID of the project and "Fabrikam-Fiber-Git" would be the name here and shown in URLs, like https://.visualstudio.com/DefaultCollection/

The additional number (here "/1/" ) is the build definition you can see on https://.visualstudio.com/DefaultCollection//_build or the selected item with https://.visualstudio.com/DefaultCollection//_build/definitionId=1

So you need 3 information elements: teamname, projectId and builddefinitionId
I dont think, that this will help you to provide that feature, because IIRC the api can only return a badge and no state.

Currently there is no information in the view to get the project id.
image

image

Hope this helps.
Best wishes
Ben

@larsbrinkhoff
Copy link
Contributor Author

The SVG data does have the text "passed" embedded. Is that useful?

@larsbrinkhoff
Copy link
Contributor Author

PR submitted: #589.

@paulmelnikow paulmelnikow added service-badge New or updated service badge and removed needs-upstream-help Not actionable without help from a service provider labels Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

No branches or pull requests

4 participants