Score:0

Why does my nightly TeamCity build fail, when it builds successfully during daytime?

in flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.