WEBVTT 00:00.270 --> 00:05.790 In this video we are going to be working with custom agents of build pipeline. 00:05.790 --> 00:07.650 So far working with the custom agent. 00:07.680 --> 00:13.870 If you remember in our previous video we went to what is called as the settings of our project. 00:13.920 --> 00:19.200 So I'm just gonna navigate over there and if I go to the agent polls you can see that we have something 00:19.200 --> 00:23.960 called us defined as your pipelines which is nothing but the default agent pools. 00:24.300 --> 00:27.160 And from here I can create a new agent. 00:27.390 --> 00:32.930 So basically I had some agents in my local machine before which was a different operating system. 00:33.000 --> 00:38.580 I was using pretty long time before and this time I'm going to be creating a new agent so far creating 00:38.580 --> 00:39.870 a new agent. 00:39.870 --> 00:44.170 You can see that you basically require what is called as a permission. 00:44.190 --> 00:50.260 So you need to queue up permission and you also need to create something called as a security token. 00:50.520 --> 00:55.280 So I need to do that as well before I actually create an agent. 00:55.410 --> 01:04.560 So I'm gonna create a new security token and I'm going to call this as Udemy course agent and expiration 01:04.560 --> 01:05.240 date is. 01:05.520 --> 01:09.710 This is gonna be 30 days which is fine and I'm going to give you a full access. 01:09.720 --> 01:15.250 You can see there are some access that you can argue for that particular access token. 01:15.270 --> 01:18.600 I'm gonna give a full access and then I'm gonna hit save. 01:18.600 --> 01:21.490 So this way it is gonna create a token for me. 01:21.540 --> 01:26.280 So I'm just gonna copy this or maybe I'm just gonna leave this for now this picture window and then 01:26.280 --> 01:30.670 I'm just gonna go to this particular agent pool and then I'm going to create a new agent. 01:30.670 --> 01:35.200 So for the new agent in my Windows operating system and it is since it's an X 64. 01:35.370 --> 01:40.200 I'm just gonna download this particular agent and you can see that the size of this particular agent 01:40.200 --> 01:41.590 is gonna be one not five. 01:41.850 --> 01:44.990 So I'm just gonna wait for the agent download to be happening. 01:53.850 --> 01:54.210 All right. 01:54.220 --> 01:57.840 The reason has been downloaded so I'm just gonna open this particular file. 01:58.320 --> 02:02.480 So this is the agent that has been downloaded. 02:02.610 --> 02:08.820 I'm just gonna go to the see column off my drive and then I'm just gonna create what is called as an 02:08.910 --> 02:09.600 agent. 02:09.720 --> 02:15.780 So this is the agent that is gonna be sitting in my local machine and then I'm just gonna paste these 02:15.780 --> 02:16.130 files. 02:16.140 --> 02:18.240 So this is what is being told here. 02:18.270 --> 02:24.060 You're gonna create an agent and then you need to ceding into the agent and then you're going to extract 02:24.150 --> 02:31.260 those files in there and then to configure the agent we need to call the DOD configured RCMP and then 02:31.260 --> 02:35.410 we need to run for Agent interactively. 02:35.440 --> 02:37.470 You need to run this particular run dot CMT. 02:37.500 --> 02:37.860 That's it. 02:37.860 --> 02:40.950 So this is the configuration part of the whole stuff. 02:40.980 --> 02:45.390 So I'm just gonna be doing the complete thing in this particular case. 02:45.390 --> 02:51.940 So I guess the copying of the files completed and now I'm going to go over here and then I'm just gonna 02:51.980 --> 02:55.140 open a partial with the administrator more 02:58.350 --> 03:06.030 over here and then I'm just gonna run the config dot CMT so then and ask me to connect for the you are 03:06.030 --> 03:07.260 all off the server. 03:07.320 --> 03:13.820 So basically that you are love the server which is nothing but our application or here which is think 03:13.820 --> 03:18.070 what our project is developed Azure out slash execute order. 03:18.090 --> 03:24.450 So this is the server and then it asked me to enter the PTO our personal access token. 03:24.450 --> 03:26.580 So this is the one that I was looking for. 03:26.760 --> 03:33.960 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 03:34.050 --> 03:40.410 and then I'm gonna paste this but P T are personal access token I gonna hit you enter and now that is 03:40.420 --> 03:45.050 gonna connect to the server and it's gonna register to the agent for the connectivity. 03:45.180 --> 03:50.280 So I guess the authentication is correct and then it is gonna ask me the register agent. 03:50.310 --> 03:52.990 So enter the agent pool. 03:53.070 --> 03:56.610 So if it is divided we can just leave it as it is. 03:56.610 --> 04:03.630 So as you can see the agent pool that I have if I go over here it's gonna be default. 04:03.690 --> 04:09.930 So far our case I'm just gonna add a pool here and I'm gonna call this as you dummy pool. 04:10.200 --> 04:13.250 It's gonna save it and I'm gonna give the full permission. 04:13.260 --> 04:21.570 So this is my Udemy pool and I'm just gonna keep this this Udemy pool and it ask me to enter the agent 04:21.630 --> 04:26.750 name so the agent name is gonna be you to me agent as well. 04:26.820 --> 04:31.770 So this is the name and now we're the scanning for the tool capabilities connecting to the server and 04:31.770 --> 04:38.090 the agent has been successfully added I know it's asking me to enter the work folder. 04:38.220 --> 04:44.010 So basically this is where all my birds are gonna be sitting within my local machine. 04:44.280 --> 04:53.730 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 04:53.730 --> 05:02.760 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 05:02.760 --> 05:08.310 it asked me whether you want to run this as a service I'm just gonna say no because I want to run this 05:08.520 --> 05:11.290 as interactively as well that's it. 05:11.940 --> 05:20.610 And you can figure this out of logging and run this on the startup I'm just going to say yes and enter 05:20.610 --> 05:22.320 the user account for the order log in. 05:22.320 --> 05:28.230 So I'm just gonna enter my username and password and then it asked me to enter the machine. 05:28.710 --> 05:31.290 So I'm just gonna hit in right now. 05:31.290 --> 05:34.670 So the design in the machine in order to launch the agent to interactive mode. 05:34.920 --> 05:40.370 So it will be resetting the machine and then you'll be back and now I'm back into my machine. 05:40.370 --> 05:46.060 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 05:46.060 --> 05:50.890 jobs for this particular agent but if I go to the agents you can see that I know how my Udemy agent 05:50.890 --> 05:51.770 is up and running. 05:52.060 --> 05:56.030 So this particular agent you can see that it has few capabilities as well. 05:56.050 --> 06:01.050 You can see that it is currently sitting in my home directory of secret agents. 06:01.060 --> 06:08.990 If you remember and then all its bird is gonna be sitting into the IN THE BIRDS folder right. 06:09.010 --> 06:11.840 So basically everything is being configured here. 06:11.920 --> 06:14.020 It's showing all those details for me. 06:14.030 --> 06:15.640 Just pretty awesome right. 06:15.700 --> 06:18.230 All those steps are currently working here. 06:18.280 --> 06:20.230 I don't really have any problem right now. 06:20.350 --> 06:24.760 So we can use this particular agent to perform a bird and see how things work. 06:24.790 --> 06:33.130 So far that I'm gonna go to the to the pipelines of the bird which is nothing but this one and then 06:33.220 --> 06:39.730 I'm just going to change this particular VM image of Windows latest to the pool that we have created. 06:39.820 --> 06:42.950 So the pool that we have created is nothing but the Udemy pool. 06:42.970 --> 06:48.610 So all I'm gonna do is I'm just gonna give the pool a name here as you dummy pool 06:51.580 --> 06:53.380 and then I'm just gonna hit safe. 06:53.380 --> 06:56.060 So I'm just gonna say our 06:58.770 --> 07:03.390 local agent pool and then I'm just gonna hit safe. 07:04.750 --> 07:05.500 Right. 07:05.890 --> 07:11.920 Close this or maybe I need to just copy this because something has been changed in the middle so I'm 07:11.920 --> 07:20.280 just gonna leave this guy and I'm just gonna do an edit and you can see that this is the you dummy pool. 07:20.500 --> 07:26.350 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 07:26.440 --> 07:32.710 wait for the agent for getting that job ready and he can see that it has fixed the pool and now the 07:32.710 --> 07:41.110 pool is actually Udemy pool which is my local pool and this is where the initializing of the job is 07:41.200 --> 07:42.190 being happening. 07:42.340 --> 07:49.630 And then it is downloading the build and is copying the build and then is also doing a post job so you 07:49.630 --> 07:53.270 can see that everything is pretty faster this time than before. 07:53.410 --> 07:58.660 You can see that all those things are pretty faster and you can see that there is this drop file as 07:58.660 --> 08:01.950 well and this is like Manuel Q as well. 08:01.950 --> 08:08.660 And now if I just go back to my machine to my bulls you can see within my bulls folder I have this bigger 08:08.680 --> 08:15.850 up app directory where I have my pulled and you can see that everything is currently coming over here 08:16.300 --> 08:21.880 and it shows all my files just pretty awesome so everything is working fine guy. 08:21.920 --> 08:28.120 Is how we can configure a local build agent and then we can run the bird without any problem instead 08:28.120 --> 08:31.750 of just the self hosted bulls that we were discussing before. 08:32.020 --> 08:32.660 So that's it guys. 08:32.680 --> 08:38.410 This how we can work with the local build in our next video we'll see how we can work with triggers.