-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Use the ServiceEndpoinr.Uri as/in the SourceDefinition.Endpoint #973
Comments
Here's what you could do:
This should populate the picklist using the values returned by the specific endpoint your Build task is interested in, For reference on creating custom endpoints you can refer to following examples: If you have any queries, pl. let us know. We will put together the details required to create a custom endpoint with dataSources in a write-up shortly that would help you here. |
@GitHubSriramB can you provide a working example of the technique you described? Let's assume that we have a custom endpoint called Foo, which will give us our list at address /repository/list1. How would you then bind the result of it to a pickList in your manifest file? Thanks |
@mmajcica - You can find how BitBucket download task is using data source binding for listing repositories which is very close to what you are asking for: Here is the task manifest file: Here's how the datasourceBinding for repository input that the task takes looks like: Here's how the datasource for repository looks like: Let me know if you have further queries. |
Dear @GitHubSriramB , it worked perfectly. Your examples where helpful however even more helpful was this article https://www.visualstudio.com/en-us/docs/integrate/extensions/develop/service-endpoints. Thank you |
See also: #801
We're trying to build a task for Build which will select a server based on the Generic Endpoints registered in VSTS or VSO. In a number of other dropdowns we want to provide a picklist by calling a REST api on the target endpoint.
We want this task to be generic and since the server product will be installed by clients, there is no "generic global unique uri" which we can query.
What we'd like to be able to do is this:
But as mentioned in #801, there currently is no way to access the Generic Endpoint URL to make the call.
There could be multiple instances of this server product and we'd like to be able to provide a generic build task which will work for all and won't have to be customized for each installation with the correct local URI.
The text was updated successfully, but these errors were encountered: