Cannot get artifacts using Build runner type Visual Studio Solution File

I am new to TeamCity. I am using the build step using the Visual Studio solution file. I want to configure the Artifact path so that I can get the output of my compilation somewhere in the Artifact folder. I could not understand from the documentation of TeamCity :)

I have the following configuration. But do not get the artifact.

Artifact paths:- /MyProject/bin/Release/*.* => PublishDir Build Runner : Visual Studio(sln) Build file path: \Successor\Successor.sln Targets: Rebuild Configuration: Release Platform: x86 

What is wrong here?

thanks

+6
continuous-integration teamcity
source share
2 answers

I would edit your artifact and plot the paths as follows:

 Artifact paths: MyProject/bin/Release/*.* => PublishDir Build file path: Successor\Successor.sln 

Sometimes links to paths with "\" or "/" lead to problems with TeamCity. Updating the path to the artifact may solve the problem. Obviously editing the path of the build file will not fix your problem, but it would be nice to continue and change this if you ever edit the configuration.

If this change does not help, what do the log files say about your build results? Have your build results successfully ended up in the Project / bin / Releases folder in the build agent? Is there a link to published artifacts or not published in magazines?

+4
source share

Check out TeamCity build log. He will tell you why the artifact cannot be created. For example:

 [Publishing artifacts] Artifacts path /MyProject/bin/Release/*.* not found 

Make sure your files are really compiled by ro bin\release .

+5
source share

All Articles