In this video we are going to be working with custom agents of build pipeline.
So far working with the custom agent.
If you remember in our previous video we went to what is called as the settings of our project.
So I'm just gonna navigate over there and if I go to the agent polls you can see that we have something
called us defined as your pipelines which is nothing but the default agent pools.
And from here I can create a new agent.
So basically I had some agents in my local machine before which was a different operating system.
I was using pretty long time before and this time I'm going to be creating a new agent so far creating
a new agent.
You can see that you basically require what is called as a permission.
So you need to queue up permission and you also need to create something called as a security token.
So I need to do that as well before I actually create an agent.
So I'm gonna create a new security token and I'm going to call this as Udemy course agent and expiration
date is.
This is gonna be 30 days which is fine and I'm going to give you a full access.
You can see there are some access that you can argue for that particular access token.
I'm gonna give a full access and then I'm gonna hit save.
So this way it is gonna create a token for me.
So I'm just gonna copy this or maybe I'm just gonna leave this for now this picture window and then
I'm just gonna go to this particular agent pool and then I'm going to create a new agent.
So for the new agent in my Windows operating system and it is since it's an X 64.
I'm just gonna download this particular agent and you can see that the size of this particular agent
is gonna be one not five.
So I'm just gonna wait for the agent download to be happening.
All right.
The reason has been downloaded so I'm just gonna open this particular file.
So this is the agent that has been downloaded.
I'm just gonna go to the see column off my drive and then I'm just gonna create what is called as an
agent.
So this is the agent that is gonna be sitting in my local machine and then I'm just gonna paste these
files.
So this is what is being told here.
You're gonna create an agent and then you need to ceding into the agent and then you're going to extract
those files in there and then to configure the agent we need to call the DOD configured RCMP and then
we need to run for Agent interactively.
You need to run this particular run dot CMT.
That's it.
So this is the configuration part of the whole stuff.
So I'm just gonna be doing the complete thing in this particular case.
So I guess the copying of the files completed and now I'm going to go over here and then I'm just gonna
open a partial with the administrator more
over here and then I'm just gonna run the config dot CMT so then and ask me to connect for the you are
all off the server.
So basically that you are love the server which is nothing but our application or here which is think
what our project is developed Azure out slash execute order.
So this is the server and then it asked me to enter the PTO our personal access token.
So this is the one that I was looking for.
So I'm going to copy that and I'll go here and then paste it and make it enter and when I enter this
and then I'm gonna paste this but P T are personal access token I gonna hit you enter and now that is
gonna connect to the server and it's gonna register to the agent for the connectivity.
So I guess the authentication is correct and then it is gonna ask me the register agent.
So enter the agent pool.
So if it is divided we can just leave it as it is.
So as you can see the agent pool that I have if I go over here it's gonna be default.
So far our case I'm just gonna add a pool here and I'm gonna call this as you dummy pool.
It's gonna save it and I'm gonna give the full permission.
So this is my Udemy pool and I'm just gonna keep this this Udemy pool and it ask me to enter the agent
name so the agent name is gonna be you to me agent as well.
So this is the name and now we're the scanning for the tool capabilities connecting to the server and
the agent has been successfully added I know it's asking me to enter the work folder.
So basically this is where all my birds are gonna be sitting within my local machine.
So if I want to give that I can probably go or here I'm gonna create a new folder in my see column I'm
not call this as PWD and this is the folder that I am be using for my boat I'm gonna hit the enter and
it asked me whether you want to run this as a service I'm just gonna say no because I want to run this
as interactively as well that's it.
And you can figure this out of logging and run this on the startup I'm just going to say yes and enter
the user account for the order log in.
So I'm just gonna enter my username and password and then it asked me to enter the machine.
So I'm just gonna hit in right now.
So the design in the machine in order to launch the agent to interactive mode.
So it will be resetting the machine and then you'll be back and now I'm back into my machine.
And now I can see that I have my Udemy pool and if I go into the Udemy pool I don't really have any
jobs for this particular agent but if I go to the agents you can see that I know how my Udemy agent
is up and running.
So this particular agent you can see that it has few capabilities as well.
You can see that it is currently sitting in my home directory of secret agents.
If you remember and then all its bird is gonna be sitting into the IN THE BIRDS folder right.
So basically everything is being configured here.
It's showing all those details for me.
Just pretty awesome right.
All those steps are currently working here.
I don't really have any problem right now.
So we can use this particular agent to perform a bird and see how things work.
So far that I'm gonna go to the to the pipelines of the bird which is nothing but this one and then
I'm just going to change this particular VM image of Windows latest to the pool that we have created.
So the pool that we have created is nothing but the Udemy pool.
So all I'm gonna do is I'm just gonna give the pool a name here as you dummy pool
and then I'm just gonna hit safe.
So I'm just gonna say our
local agent pool and then I'm just gonna hit safe.
Right.
Close this or maybe I need to just copy this because something has been changed in the middle so I'm
just gonna leave this guy and I'm just gonna do an edit and you can see that this is the you dummy pool.
And now I if I hit the run you can see that it's creating a bolt Q And it's saying that it's going to
wait for the agent for getting that job ready and he can see that it has fixed the pool and now the
pool is actually Udemy pool which is my local pool and this is where the initializing of the job is
being happening.
And then it is downloading the build and is copying the build and then is also doing a post job so you
can see that everything is pretty faster this time than before.
You can see that all those things are pretty faster and you can see that there is this drop file as
well and this is like Manuel Q as well.
And now if I just go back to my machine to my bulls you can see within my bulls folder I have this bigger
up app directory where I have my pulled and you can see that everything is currently coming over here
and it shows all my files just pretty awesome so everything is working fine guy.
Is how we can configure a local build agent and then we can run the bird without any problem instead
of just the self hosted bulls that we were discussing before.
So that's it guys.
This how we can work with the local build in our next video we'll see how we can work with triggers.