revzzz
revzzz

Reputation: 113

Teamcity Agent cannot Run the Build

I am a Teamcity Developer. We Recently Moved out Teamcity Builds from local server to Public cloud instance.

Everything went well but couldn't able to run the build.

ERROR :

Failed to perform checkout on agent: '/usr/bin/git init' command failed. stderr: /usr/local/sg/chaldron/repo/chaldron-pngdev/.git: Permission denied

error

I am using Git latest and Java latest version.

Can anyone suggest how to solve the error?

Thanks in Advance.

Upvotes: 2

Views: 2587

Answers (1)

Rawrgramming
Rawrgramming

Reputation: 1505

For whatever reason, the build agent does not have permission to access the git repo.

A few things to try:

  1. Confirm that the git repo is in the location specified.
  2. Confirm that there are no permissions configurations on the git repo (IP whitelists/blacklists etc) that might prevent access from this cloud agent
  3. Check whether checking out on the teamcity server would work instead. In the version control settings for your build you can specify to checkout on the agent or checkout on the server (see below)

Hopefully one of these will point to your issue and let you resolve it

version control settings of build configuration - dropdown to change checkout process

Upvotes: 5

Related Questions