Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity can't locate any artifacts after a build

I have a build in TeamCity which runs against a project file names Web.csproj (inside a "Web" folder in the root) and targets "Package". It runs just fine and I get a nice Web\obj\Debug\Package folder with all the expected content.

I then have a second build with an artifact dependency on the above path which is intended to run the deploy command. However, no matter what I do I always get a "Failed to download artifact dependency" error message followed by "No files matched for pattern "Web/obj/Debug/Package"". Even if I set the artifacts path to just ** and try to pull everything from the root, it fails. Looking on the server, there are clearly files in the working directory.

Does anyone have any guidance for troubleshooting this?

like image 507
Troy Hunt Avatar asked Nov 04 '10 04:11

Troy Hunt


People also ask

Where are artifacts stored in TeamCity?

By default, the artifacts are stored under the <TeamCity Data Directory\>/system/artifacts directory which can be changed. You can configure an external artifacts storage to replace the built-in one. Build artifacts can also be uploaded to the server while the build is still running.

What is artifact path in TeamCity?

Artifact Paths Build artifacts are files produced by the build which are stored on TeamCity server and can be downloaded from the TeamCity UI or used as artifact dependencies by other builds.

How do you download artifacts on TeamCity?

You can also download artifacts from TeamCity using the Ivy dependency manager. For artifact downloads from outside TeamCity builds, consider using REST API. See also Accessing Server by HTTP on basic rules covering an HTTP access from scripts.


1 Answers

For the sake of completeness, the answer was that I hadn't defined an artefact path in the first build. Without specifying the output to save from this build, it won't be available in dependent builds.

like image 70
Troy Hunt Avatar answered Oct 22 '22 07:10

Troy Hunt