BuildArtifacts accessing problem.Please help me its urgent

Hi All,

           Any one have an idea about "how to access the build artifacts and how to process the build artifacts and send the message to teamcity server"?
Please let me know, any body have an idea. Please help me its urgent.

7 comments
Comment actions Permalink

Not sure what do you need. You can configure TeamCity to publish some artifacts produced by the build to the TeamCity server. Note that in fact artifacts are published by the agent when build finished (though it is possible to publish artifacts during the build too). Then if you need to use these artifacts in another build started by TeamCity you can use artifact dependencies. In this case before this build starts agent will download necessary artifacts from the TeamCity server. Hope this helps.

0
Comment actions Permalink

Hi Pavel,

                   Thanks for your reply. Currently i am using Msbuild as a buildrunner for my C# solution and i am using 3rd party test-framework for execution of the test cases.The 3rd party test-framework was not supported by the Teamcity and the 3rd party test-framewok can exports the test-results to an xml file. Now we are converting the xml file to html file and its treated as a build artifacts. We have modified the Main-config.xml file under the datadirectory of the teamcity server and publishing the html file as a separate tab. Now i want to processs the build artifacts and get the test-summary information and sends the test-summary information to the teamcity server. I have no idea how to access and process the build artifacts and how to get the test-summary information from the html/xml file.

I want the testsummary information like the following way.

Result: Tests passed: 39, ignored: 2 Agent:


 


Please help me, its very very urgent issue.

0
Comment actions Permalink

The only wat to do what you want is to process generated xml files on the agent and generate corresponding service messages to the output, see more here: http://www.jetbrains.net/confluence/display/TCD4/Build+Script+Interaction+with+TeamCity

0
Comment actions Permalink

Hi Pavel,

              Thanks for your reply. Currently i am using msbuild as a build runner. Is there any way to access and process the xml files on agents using the msbuild. Please let me know the procedure, i have read the link that you provided in the previous thread and i was not clear about it.

Please help me, its very very urgent issue.




0
Comment actions Permalink

I am not an expert in MSBuild, but I know it is possible to write custom MSBuild task.

0
Comment actions Permalink

Pavel,

          Sorry i was not clear in my question. What i want exactly is " We can run the build on any build agent machine and it produecs the xml files as a build artifacts. Could you please let me know "how to access and process the xml files (i.e build artifacts)"

0
Comment actions Permalink

As you mentioned your build is run by MSBuild, the answer to you question: write custom MSBuild task and process artifacts of your build.

0

Please sign in to leave a comment.