Skip to content

VSTS (Visual Studio Team Services) custom build task to set git config for proxy

License

Notifications You must be signed in to change notification settings

tinoji/vsts-task-gitProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vsts-task-gitProxy

VSTS (Visual Studio Team Services) custom build task to set git config for proxy. You can fetch repositories behind proxy (e.g. on-premises Github Enterprise in a private network) to a VSTS hosted agent.

VSTS staffs recommend using an on-premises agent! You should consider it at first. See microsoft/azure-pipelines-agent#1281

Installation

  1. git clone this repository.

    git clone https://github.com/tinoji/vsts-task-gitProxy
    
  2. Download VstsTaskSdk, then copy it in task/ps_modules.

    git clone https://github.com/Microsoft/vsts-task-lib
    cp -R vsts-task-lib/powershell/VstsTaskSdk vsts-task-gitProxy/task/ps_modules
    
  3. Install vsts cli commannd and log in to your VSTS account.

  4. Upload a task to your account.

    cd vsts-task-gitProxy/task
    tfx build tasks upload
    

    Enter path in the task path prompt.

    TFS Cross Platform Command Line Interface v0.4.11
    Copyright Microsoft Corporation
    > Task path: .
    

Usage

Add the task in your build definition.
add_task

Put the task in the top order.
order

Enter your proxy configuration.
configuration

References

Running powershell before Get Sources in VSTS / TFS Build

microsoft/azure-pipelines-agent#1281

License

MIT

About

VSTS (Visual Studio Team Services) custom build task to set git config for proxy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published