Implement CI (Continuous Integration) – Create Build Agent to trigger build for .NET Core App

As we all know that CI is one of the process of Agile methodology to develop software faster by using smaller iteration sprint. The project that we develop with .NET Core to utilise the built-in DI and cross-platform support. Our source code hosted on TFS on-premise, so we need to create build agent with .NET Core support

Create Build Agent

To build or deploy your code, you need to have at least 1 build agent. If you already had build agent or using Microsoft-hosted agent from Visual Studio Team Services, you can skip this step. This step will show you how to create self-hosted build agent. You can view the agent pool to see if you already had build agent. The below screenshot shows that I already had a build agent

Let’s get started to create your first self-hosted build agent

Step 1. Login to your tfs server then create Personal Access Token by clicking to your profile and Click Security -> Add Personal Access Token and select scope as Agent Pool (manage, read). Keep the token in a safe place, you will need to use it later to create a new build agent. Then choose Download Agent. **You need to download agent to your TFS Server and follow instructions.

Step 2:

Open PowerShell and create agent folder
mkdir agent ; cd agent

Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\", "$PWD")

PS C:\agent> .\config.cmd

Step 3: 

Follow instructions to setup TFS Url – ** TFS Url needs to be a secured connection HTTPS to use PAT security method. When it prompts Access Token, use the Personal Access Token from Step 1. Once it all succeeds, new build agent will appear on Agent Pool

Book online now &
SAVE
10%
On Your Ride

DOWNLOAD OUR APP
avada-taxi-phone-app

About the Author

Buy Avada Now

Subscribe Today

Subscribe to our monthly newsletter to receive all of the latest news and articles directly to your inbox.

Discussion

Leave A Comment

Testimonials

“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”

avada-taxi-testimonial-1

Mike Smith – Brooklyn, NY

Related Posts

If you enjoyed reading this, then please explore our other articles below:

Back to News

Don’t want to use the app?

No problem, book online or give us a call!

BOOK ONLINE
CALL TO BOOK
BOOK ONLINE
CALL TO BOOK