Configuring Jenkins for Azure Repos Integration - Microsoft AZ-400 Exam

Configure Jenkins for Azure Repos Integration

Question

Your company uses cloud-hosted Jenkins for builds.

You need to ensure that Jenkins can retrieve source code from Azure Repos.

Which three actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

BCD

B: Jenkins requires a plug-in to connect to TFS and check for updates to a project.

Jenkins' built-in Git Plugin or Team Foundation Server Plugin can poll a Team Services repository every few minutes and queue a job when changes are detected.

C: Use Azure DevOps/ Visual Studio Team Services to create a Personal access token.

D: After you have generated credentials using Visual Studio Team Services, you need to use those credentials in Jenkins.

http://www.aisoftwarellc.com/blog/post/how-to-setup-automated-builds-using-jenkins-and-visual-studio-team-foundation-server/2044

To ensure that Jenkins can retrieve source code from Azure Repos, you need to perform the following three actions:

  1. Create a personal access token (PAT) in your Azure DevOps account: To allow Jenkins to access your Azure Repos, you need to create a personal access token in your Azure DevOps account. This token acts as a temporary password and provides Jenkins with access to your Azure Repos. You can create a personal access token by navigating to your Azure DevOps account settings and selecting "Personal access tokens" from the Security tab.

  2. Add the Team Foundation Server (TFS) plug-in to Jenkins: The TFS plugin for Jenkins provides integration with Azure DevOps, allowing Jenkins to connect to Azure Repos and retrieve source code. To add the TFS plugin, you need to navigate to the "Manage Jenkins" section in Jenkins and select "Manage Plugins". From there, you can search for the TFS plugin and install it.

  3. Add a personal access token to your Jenkins account: After installing the TFS plugin, you need to add the personal access token created in step 1 to your Jenkins account. To do this, navigate to the "Credentials" section in Jenkins and select "System". From there, you can add a new "Secret text" credential and enter the personal access token as the secret. You can then use this credential to configure your Jenkins job to retrieve source code from Azure Repos.

Therefore, the correct answers are: D. Create a personal access token (PAT) in your Azure DevOps account. B. Add the Team Foundation Server (TFS) plug-in to Jenkins. C. Add a personal access token to your Jenkins account.