Azure DevOps - Integrate Jenkins with Azure Repos

  Jenkins is a CI/CD Pipeline tool. Jenkins - Overview Jenkins Installation on Ubuntu The below steps are used to integrate Azure Repos with...

 Jenkins is a CI/CD Pipeline tool.

Jenkins - Overview

Jenkins Installation on Ubuntu

The below steps are used to integrate Azure Repos with Jenkins.(Below example is java maven based project)

Once Jenkins is installed and the service is running then you can access the Jenkins on port number 8080.

Install maven on the ubuntu machine apt install maven command.

Create a sample maven project using mvn archetype:generate command. Provide the options as default options except below two values.


artifactid: myproj

Create a Repo in the Azure DevOps portal and push the myproj into the repo 

  • cd myproj
  • git init
  • git add .
  • git commit -m "Initial setup"
  • git remote add origin <URL of AzureRepo>
  • git push origin master

Check on the Azure Repos MyProj repo should be created.

Click on Clone Repo and copy the URL. Generate a username and password and use these credentials in the Jenkins job.

Goto Jenkins portal and Select Manage Jenkins --> Manage plugins

In the Available Tab select Maven Integration and click on Install without restart Jenkins button.

Create a new job in Jenkins with Maven Project

In the configuration Map Git URL as Azure Repo url and the add credentials as created for Azure repos.

In the Goals and options write the command clean package 

Generate a token in Jenkins to integrate with Azure Repos. On Jenkins select People-->admin user-->Configure-->API Token-->Generate Token

Save the token because this token is only visible during creation time only

On Azure DevOps, Goto Project Settings --> Service hooks-->New Subscription -->Jenkins---> Add Trigger

Type of Event Code Pushed and select your repository.

Now change the code in the Azure Repo and You will find that the Jenkins job is triggered.



Ansible,6,AWS,1,Azure DevOps,1,Containerization with docker,2,DevOps,2,Docker Quiz,1,Docker Swarm,1,DockerCompose,1,ELK,2,git,2,Jira,1,Kubernetes,1,Kubernetes Quiz,5,SAST DAST Security Testing,1,SonarQube,3,Splunk,2,vagrant kubernetes,1,YAML Basics,1,
DevOpsWorld: Azure DevOps - Integrate Jenkins with Azure Repos
Azure DevOps - Integrate Jenkins with Azure Repos
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content