Jenkins and Azure DevOps
- Roman Guoussev-Donskoi
- Jan 23, 2019
- 1 min read
Updated: Apr 20, 2019
To use the code from Azure Dev Ops in Jenkins Job
SSH:
this seems more reliable compared to https especially with if you in the environment with flaky http proxy
1. Generate prvate/public key-pair
$ ssh-keygen -t rsa
2. Add pubic key to account allowed access to Azure Devop Repository

3. Add content of the generated id_rsa*.pub file to Azure Dev Ops profile

4. add credentials to Jenkins

5. Configure SCM credentials in Jenkins job

HTTPS: (if you have to)
1. Use the following connection string:
https://dev.azure.com/{your_organization}/{you_project}/_git/{your_repo}
(not the syntax Azure DevOps provides for clone)
2. Then setup personal access token in https://dev.azure.com/{your_organization}/_usersSettings/tokens
3. Setup credentials in Jenkins using personal access token as a password
4. Now your job can leverage Azure DevOps as SCM

Comments