Problem when building on Teamcity Build Agents

ojapes
Posts: 3
Joined: Tue Sep 03, 2024 1:51 pm

Problem when building on Teamcity Build Agents

Postby ojapes » Tue Sep 03, 2024 2:06 pm

Hello,

we're using Teamcity as our CI/CD-Tool. I'm right now developing an application mainly on a Liligo-TSim7000g, but with other, simpler, boards also as environments.

The build was fine, until I needed to switch the main platform SDK from Arduino to espdf with Arduino as an AddOn.

Since then, our server won't build anymore, neither on a normal (Windows-) Agent nor within a Docker-Container.

The error is
[15:25:31]W: [Step 7/7] fatal: not a git repository (or any of the parent directories): .git
[15:25:31]W: [Step 7/7] CMake Error at .pio/build/lilygo-t-sim7000g_with_Audio/CMakeFiles/git-data/grabRef.cmake:48 (file):
[15:25:31]W: [Step 7/7] file failed to open for reading (No such file or directory):
[15:25:31]W: [Step 7/7]
[15:25:31]W: [Step 7/7] /opt/buildagent/work/3219960388f4e687/.pio/build/lilygo-t-sim7000g_with_Audio/CMakeFiles/git-data/head-ref
[15:25:31]W: [Step 7/7] Call Stack (most recent call first):
[15:25:31]W: [Step 7/7] /root/.platformio/packages/framework-espidf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
[15:25:31]W: [Step 7/7] /root/.platformio/packages/framework-espidf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
[15:25:31]W: [Step 7/7] /root/.platformio/packages/framework-espidf/tools/cmake/project.cmake:61 (git_describe)
[15:25:31]W: [Step 7/7] /root/.platformio/packages/framework-espidf/tools/cmake/project.cmake:472 (__project_get_revision)
[15:25:31]W: [Step 7/7] CMakeLists.txt:4 (project)
[15:25:31]W: [Step 7/7]
[15:25:31]W: [Step 7/7]
[15:25:31]W: [Step 7/7] fatal: not a git repository (or any of the parent directories): .git
[15:25:31]W: [Step 7/7] fatal: not a git repository: /root/.platformio/packages/framework-espidf/components/openthread/openthread/../../../.git/modules/components/openthread/openthread
Of course I've searched the internet for any causes, but I can't fix it.

Additional info: the build runs fine on normal developer machines using pio run, just not within Teamcity.

Can anybody give me a hint why the build fails since I switched the main platform SDK?

If required, I can of course provide platformio.ini or any other files.
Full build log is attached.
Best Regards,
Oliver
Attachments
PielStore_Suite_PielStore_Firmware_114.log
(51.54 KiB) Downloaded 44 times

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: Problem when building on Teamcity Build Agents

Postby ESP_Sprite » Wed Sep 04, 2024 12:05 am

Note that this looks like a PlatformIO issue, and PlatformIO is a 3rd party SDK not developed by Espressif. You may have more luck asking the PlatformIO people for help.

ojapes
Posts: 3
Joined: Tue Sep 03, 2024 1:51 pm

Re: Problem when building on Teamcity Build Agents

Postby ojapes » Wed Sep 04, 2024 6:06 am

ESP_Sprite wrote:
Wed Sep 04, 2024 12:05 am
You may have more luck asking the PlatformIO people for help.
Thanks for that hint, I'll crosspost my question over there as well.

ojapes
Posts: 3
Joined: Tue Sep 03, 2024 1:51 pm

Re: Problem when building on Teamcity Build Agents

Postby ojapes » Thu Sep 05, 2024 6:22 am

We're not sure why, but we seem to have fixed it by changing the way the project is checked out on the build agent from our git-repo.

So if anyone is interested and can maybe confirm that this change is necessary, this is what we did:
First thing we changed was the branch name from refs/heads/master to just master, the second was to change the "useAlternates"-Flag from "Auto" to "NoMirrors"

So now everything is building fine. Thank you.

Who is online

Users browsing this forum: Gaston1980 and 129 guests