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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With