In my project we are using Azure DevOps in which we have a pipeline which
- pulls code from code repository
- downloads Ubuntu container
- installs Maven
- downloads all the dependencies
- then tries to build code
With this approach, every time we commit code in the repository, new container gets downloaded and Maven dependencies are downloaded as well.
Downloading dependencies itself is taking 10+ minutes which is kind of frustrating.
Is there any way in which we can cut down this build time? We have couple of virtual machines in Azure, is it possible to tell Azure DevOps pipeline to use these virtual machines to build the code instead of using containers?
I am sorry if this question is too broad/generic but I am new to DevOps and Azure in general so I don't know specific terms from DevOps world.