I have a local TeamCity installation on my work PC. I've set up TeamCity to pull and build nightly.
Checking the build logs, I can see that it is failing to collect changes whenever this build trigger happens. If I trigger the build manually, it works.
I changed the build trigger to run during the day, then I logged off my PC. This time it worked. So it seems to me like the nightly builds are failing for some reason related to the time of day.
Here's the log text:
Failed to collect changes, error: git -c credential.helper= ls-remote origin command failed.
exit code: 128
stderr: ssh: Could not resolve hostname github.com: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists., VCS root: "Github" {instance id=1, parent internal id=1, parent id=XXXX_Github, description: "[email protected]:XXXX/XXXX.git#development"}
Is it common for corporate environments to use time-of-day based network firewalls? We don't have anything fancy going on in our office network but it's possible the building IT is doing something.
----- Edit -----
More detail: I logged on to the machine remotely at night. I found that I was able to run the build. So I think this issue isn't specifically related to night-time, but the build is failing when I'm not logged in.