chocolatey-community / chocolatey-azuredevops

Chocolatey Extension for Azure DevOps
MIT License
20 stars 11 forks source link

Add connectedservice input to push command #34

Closed gep13 closed 5 years ago

gep13 commented 5 years ago

To allow usage of stored API Keys within the Organisation.

There is some conversation about this here:

https://twitter.com/jessehouwing/status/1066942111642193922

gep13 commented 5 years ago

Should be possible by calling Get-VstsInput on the input, which should return a GUID, and then this GUID can be passed to Get-VstsEndPoint (https://github.com/Microsoft/azure-pipelines-task-lib/blob/master/powershell/Docs/Commands.md#get-vstsendpoint) to get all the required information.

gep13 commented 5 years ago

What is being referred to here is the ability to use one of these inputs:

image

gep13 commented 5 years ago

For the Chocolaty Task, this will likely mean adding a Radio Button input around the highlighted inputs here:

image

And also a new connectedService input. The user can then select from adding the source/apikey directly, or by selecting/adding an external feed.

NOTE This will only allow the usage of the ApiKey connection, as other connection types are not currently supported by Chocolatey.

@onovotny @devlead can I get your thoughts on this? Thanks

gep13 commented 5 years ago

When testing this, the following was useful...

When doing Basis Authentication:

image

When doing External Azure DevOps Server:

image

When doing ApiKey:

image

Notice the difference in the Scheme of each one, and also the different parameters that are available.