Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.03 KB

overview.md

File metadata and controls

32 lines (25 loc) · 1.03 KB

GenericConnectionViewer

This task sets the url/username/password stored on a generic connection. This task can be used to centrally store a url/username/password and pass them to tasks that require a username/password without having to have the credentials replicated all over build/release definitions, with this task you can have single copy which can be centrally managed and change it centrally.

This task has three parameters:

Connection The connection Url variable name Username variable name Password variable name In your can register service endpoints to store your reusable url/username/password to use in other tasks.

You need to create a Credential endpoint to store the user name and password.

Example Pipeline Usage:

pool:
  vmImage: 'ubuntu-latest'

steps:
- task: GenericConnectionViewer@0
  inputs:
    credentials: '<My Generic Service Connection Name>'
    url: 'url'
    username: 'username'
    password: 'password'

- script: |
    echo "url=$(url)"
    echo "username=$(username)"
    echo "password=$(password)"