Skip to content

PowerShell automation script to install and setup Sourcetree with AzureDevops Server 2019 without an Atlassian account.

License

Notifications You must be signed in to change notification settings

vherrlein/Install-Sourcetree-Git-AzureDevopsServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Sourcetree Installation Automation

The objective of that PowerShell script is automating the installation by downloading the following products from Web and the setup them for an integration with AzureDevops Servers 2019:

  • Git for Windows
  • Atlassian Sourcetree

Process

  1. Check Git for Windows is installed
  • If not installed and authozied by the end-user, installing it from internet
  1. Check Atlassian Sourcetree is installed
  • If not installed and authozied by the end-user, installing it from internet
  1. Recover Sourcetree sortcuts on the desktop and the start menu
  2. Retreive the current User Profile from the Azure Devops Server 2019
  3. Generate a new Private Access Token for Azure Devops Server
  4. Configure Git global settings with the user diaplayname, email, extra headers with the PAT, disabling the SSL verification, default hooks for commit messages checks
  5. Configure Sourcetree User Settings (EULA Agreement, Default User email and Default User Name)
  6. Configure Sourcetree Accounts (Default flase Atlassian and the Azure Devops one)
  7. Ensure Creadentials for the Azure Devops url is recorded by Windows Credential Manager
  8. Disable Sourcetree SSL verification

Requirements

Name Description
OS Windows 10 / Windows Server 2012 R2
Network Access to internet and the target Azure Devops Server 2019
Admin Privilege Not required

Script configuration

Open the script "SetupSourceTree.ps1" with your favorite editor and update the URL of your Azure Devops Server with the variable "$devOpsCollectionUrl".

Script Execution

If your machine is able to run PowerShell script without security restriction policies:

PS:> .\SetupSourceTree.ps1

Otherwise open Microsoft PowerShell ISE with the script file and select all script content then press F8.

About

PowerShell automation script to install and setup Sourcetree with AzureDevops Server 2019 without an Atlassian account.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published