Just current, latest snapshot my source code repository. In short: I would like to clone dev branch from my git repository with only latest commit – no git history, tags, other branches or anything else. Git clone https : ///my-repository/my-app.git -progress -branch dev -single-branch -depth=1 What would I like to achieve is to run git command like this: Data transferred from my custom git server to the Azure DevOps is 2.25 GB. So, it takes almost 8 minutes to clone my git repository to the build machine. When I trigger the build I get this situation: I just want to check how long this action takes.įor brevity, I create empty build pipeline which only clones source code from my custom git repository. Let’s first check straightforward approach by simply cloning my git repository into Azure DevOps pipeline. I have relative large git repository and I need to build my app on my Azure DevOps. Basically, Azure DevOps only allows simple full git cloning or small area of tuning. This is very simple with raw git command, I just need to figure out how to overcome this limitation on on Azure DevOps.Īs said, out-of-the-box Azure DevOps does not allow this kind of flexibility. Possible solution: It would be nice to clone only the last commit on specific branch (e.g. Because of this, my build took a lot of time just to download the source code to build machine. Normally, whole deep clone is executed every time the build is triggered. Azure DevOps pipelines allow relatively small control over source code cloning process. I used Azure DevOps build pipelines to build my app. Therefore, overall git size become relatively huge, but source code was still fairly small. These files were not directly related to source code. The problem: In one of my projects I had relatively large git repository due to handling big binary files (design images, documentation, etc.) within git repository. Today, I will show how to perform custom git clone on Azure DevOps build pipeline and be able to manage source code cloning on Azure DevOps build engine in a more flexible way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |