Is there any way to use cache in azure docker agent in each job . ? Like I am using container in each job level . But I am unable to use one job cache into another . Where azure DevOps always creating new azure docker agent with each job in yaml ?
Each job runs on a different agent (VM), and every time an agent is instantiated it’s “clean”. That is why the cache is not there. You could try using the cache task (I have a video about it) but I wouldn’t recommend using it for such a big “file” as a container image is…
Hi. That's a tricky question, because it depends on how big your machine is and what you have to do with the agents. :) In theory you should assign at least 1 core and 1 Gb of ram to each container. But then it may not be enough if you need to perform cpu and/or memory intensive task. Building a large solution with 1 core may take long time, and 1gb of Ram may not be enough and your agent may run out of memory. Ultimately, depends on what you have to do :)
Hey man. i install the agent . I have a problem. Where is the installation ? i need to start the service ...but I don;t find the part . Thanks for great videos you make . Edit. I found in the agent settings the Agent.HomeDirectory but when I go there I don;t find any folder
Thanks for the compliments :) I;' not sure what you mean... If you used the install script, the pipeline service should start automatically every time the container starts
1 question .if i just download the zip from the start.ps1 script ( I mean this 1 vsts-agent-win-x64-2.181.2 ) and install it manual, will the results be the same ?
@@CoderDave I did all the tutorial . But i have an error when i run the script start.ps1 after step 1 when it says is downloading the vsts agent at step 2 i got an error . Question is, if i download the vsts agent and install it manually will result in the same output as if my start.ps1 script will succefully run ?