I followed steps mentioned in this documented and created a service endpoint which I expect to be able to access via the getEndpoint* methods in my custom build task. But I am not able to access the endpoint. Am I missing any step?
To be more specific, following is what I did
1 - Created a extension with a build task and a service endpoint contribution with basic authentication scheme.
2 - Create a service connection named "Test" in my account and set it to be visible to all pipelines.
2 - Called getEndpointUrl("Test") method from my task expecting to get the configured URL but instead I get - Endpint "Test" not found.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi @shudv, thanks for reaching out. We’ll be in touch shortly.
@chcomley, I tried fetching the connection information using the connection id instead of the name, it worked. So we can do either of the following here-
Obviously as a user, I'd prefer the first.
We need to make it clear in the doc that service connection parameters must be fetched by service connection ID.
Hi @shudv, I wanted to follow up and let you know that we are currently updating this article and will notify you once it has been published. Thank you!
Hi! I've the same problem... How to get data from datasource/service?
@ashokirla can you please provide an estimate as to when I can review your PR? Thanks so much!
@chcomley As part of service connections UX refresh, we are planning to update the entire service connections documentation. The work is currently in progress. I will publish a doc PR during the week of Oct 21-25.
Hi @ashokirla,
Following up on this - have you published these updates yet? Thanks for your help.
@shudv, While @ashokirla's group works on updating the article, as a whole, I've added a note that highlights that service connection parameters must be fetched by service connection ID. Thanks so much for your feedback!