Long story short, I have the following projects:
- a project which builds the trunk on several platforms (the project is called trunk-build)
- the trunk-build :: build configuration generates an archive artifact with all the binaries
- a project which runs unit tests on several platforms (the project is called trunk-unit-tests)
- the configurations for the unit tests are all inherited from a template (trunk-unit-tests :: unit-test), which links to the trunk-build :: build configuration, with both snapshot and artifact dependencies.
I have an agent installed on a Mac Mini, which serves to both the building and testing of Mac OS X binaries. However, while the build process runs successfully on this agent, I have a problem when running the unit tests. I always get this error:
[20:09:48]: Resolving artifact dependencies
[20:09:48]: [Resolving artifact dependencies] Failed to download artifact dependency <trunk-build :: build (build with id: 780)>:
Error looking up artifact dependency.
Cannot find build with id: 780 in build configuration "trunk-build :: build".
This error can be caused by one of the following reasons:
- build referenced in the dependency does not exist
- build configuration does not exist
- build server URL is not specified correctly on the server configuration page
- there is not enough permissions to access this build configuration (jetbrains.buildServer.artifacts.ResolvingFailedException)
Obviously, the other configurations which are inherited from the trunk-unit-tests :: unit-test template get it right. For example, I quote from the log of the trunk-unit-tests :: unit-test-linux-x86_64-glibc23 configuration:
[Resolving artifact dependencies] Artifact build.zip downloaded from <trunk-build :: build (build with id: 780)>
and unpacked to /home/asdev/compile/buildAgent/work/f4338574ab012733/bin/linux-x86_64-glibc23/release (32 files)
The agent on the MacOSX machine (and on all linux machines, for that matter) is (and has always been) started with normal user privileges.