CI/CD Updating/initializing submodules does NOT do a LFS pull
Summary
After Runner upgrade to v11.9.1 the binary files are NOT pulled in submodules via LFS. Running git lfs pull
manually fixes the problem but it's unconceivable to do this for each job.
This is working just fine with Runner v11.7 or v11.8.
Relevant logs and/or screenshots
Initialized empty Git repository in D:/Gitlab/runner/builds/Hz-szQ5-/0/GROUP/PROJECT/.git/
Clean repository
Fetching changes...
Created fresh repository.
From https://git.LOCALDOMAIN.net/GROUP/PROJECT
* [new branch] bugfix/BRANCHNAME -> origin/bugfix/BRANCHNAME
* ...
Checking out 6339cb79 as bugfix/BRANCHNAME...
git-lfs/2.6.1 (GitHub; windows amd64; go 1.11.1; git dc072c3e)
Downloading LFS objects: 0% (0/1), 0 B | 0 B/s
Downloading LFS objects: 0% (0/226), 0 B | 0 B/s
Downloading LFS objects: 2% (22/906), 1.1 MB | 0 B/s
Downloading LFS objects: 2% (34/1500), 1.2 MB | 0 B/s
...
Downloading LFS objects: 100% (3737/3737), 36 MB | 873 KB/s
Updating/initializing submodules...
Submodule 'third-party' (git@git.LOCALDOMAIN.net:GROUP/3rd-party.git) registered for path 'third-party'
Cloning into 'D:/Gitlab/runner/builds/Hz-szQ5-/0/GROUP/PROJECT/third-party'...
Submodule path 'third-party': checked out '1dee718a21886132739f981fde353f203944b25d'
$ msbuild build.proj -t:tests
Build started 4/8/2019 10:22:02 AM.
Project "D:\Gitlab\runner\builds\Hz-szQ5-\0\GROUP\PROJECT\build.proj" on node 1 (tests target(s)).
D:\Gitlab\runner\builds\Hz-szQ5-\0\GROUP\PROJECT\tools\msbuild\build.targets(154,5): error MSB4062: The "MSBuild.Community.Tasks.Git.GitVersion" task could not be loaded from the assembly ...
Done Building Project "D:\Gitlab\runner\builds\Hz-szQ5-\0\GROUP\PROJECT\build.proj" (tests target(s)) -- FAILED.
Build FAILED.
Environment description
Runner shell = "powershell"
that later invokes MSBuild.
Used GitLab Runner version
Version: 11.9.1
Git revision: de08a4bb
Git branch: 11-9-stable
GO version: go1.8.7
Built: 2019-04-03T23:55:40+0000
OS/Arch: windows/amd64
Edited by Teodor 'døru' MICU