I have succesfully added a custom build step to my TFS Team Build script, however, after my build fails (as intended by my custom build step), I want to add a URL to my custom failure report in the "Summary" section at the top of the build report.
This is the section that says...
"Build Name:"
"Requested by:"
"Team project:"
etc
How can I do this?
This cannot be done with the current versions of Team Foundation Server. The only thing that you could possibly customize in TFS2008 is to change the Build Log location to point to a URL that contains the information you are interested in along with a link to the actual build log should somebody want to look at the full details.
For more information on updating the log location, take a look at the following blog post of mine:
http://www.woodwardweb.com/teamprise/000415.html
It looks as if this cannot be done. See the first part of this post for confirmation.
http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2008/12/22/update-in-using-stylecop-in-tfs-team-build.aspx
You can add it to IBuildInformation to access programmatically (if say, you had a custom dashboard to show your build status).
Vaccano
Related
Is there any way to add a new drop down on the bug page in TFS. I want to add a new drop down as 'Bug Fixed In Build' with options as build versions
Thanks
You could add a Integration Build filed for your bug work item type.
When the Integration Build field is present in the WIT definition,
Team Foundation Build identifies work items that were resolved with
each build and then updates those work items to set the build number
in which they were resolved in the Integration Build field.
More detail info please refer this link: Fields that support integration with test, build, and version control
To display the fields in the work item is also not hard in TFS. Details please take a look at this tutorial: Add or modify a work item type. Highly recommend you to install Team Foundation Server Power Tools and use Process Editor to modify the work item template.
Note: To add or customize a WIT, you must be a member of the Project Administrators group or have your Edit project-level information permission set to Allow.
I have a custom TFS Build template that includes a procedure that runs a process that involves getting some data from a server and checking it into TFS before moving onto the main build process.
The steps are as follows:
Set build number
Run our custom script - get data, check into TFS
Initialize environment
Get sources from Team Foundation Version Control
Associate the changesets that occurred since the last good build
Compile, Test and Publish
The issue I appear to be having is that all change sets since the last successful build are included, except, the change set associated with the script run at step 2.
Does anyone know what could be going on here? my guess is that the logic that is looking for the change sets since last build is using a cut off that is set at the moment the build is requested (hence why the last change set is ignored) but this is just an uneducated guess.
Thanks in advance for your help.
Trying the steps below:
Edit your build definition and go to "Process" tab.
Enter "T" under "Get version" option.
Queue the build and check the result.
I would have two builds chained: the first build generates and check-in the files the second simply pulls them down.
I'm currently trying to run custom code coverage using OpenCover and to generate output in easily readable format using Report Generator. The final output of these two applications is xml files.
I am running these applications using InvokeProcess activity in build definition to get their outputs but the output are currently present only in my build controller's Build binaries folder.(ex:C:\Builds\1\project_collection\build_definition\bin)
I want to save these files per build in some location and to retrieve them back when needed by clicking on a hyperlink present in Build summary similar to how built-in code coverage results are displayed in tfs build summary.
I tried this question but as you can see there is no correct answers listed there.
So how do I copy these output files to some remote location and refer them in my build summary to retrieve them?
Copy outputs to some remote location is similar to copy outputs to drop folder. You can simply specify the drop location in Build Definition--Build Defaults--Staging location. Check the screenshot below:
Refer the binaries in your build summary to retrieve them, you can add a new activity “WriteCustomSummaryInformation” to your build process template, which has several properties that allow you create a new Section and add text to that section. Check this blog for more information: http://blogs.msdn.com/b/jpricket/archive/2012/06/07/tfs11-rc-simple-build-summary-customization.aspx
As I also answered here Display OpenCover results in TFS 2015 build Summary, it is now possible to customize the build results in TFS 2015.
I managed to upload the OpenCover xml result file as 'testrun-attachment' via REST-interface and got the pieces in place to show the summary values on both the build summary tab and on its own extended “build-results-view”.
In my TFS 2010 build definition, I call MSBuild on my own custom my.targets MSBuild project. It does all the compilation, testing, etc. that I need. Its log file is specified, as is a log drop location, and the log appears properly in that place. However I can't see it in the TFS Build Summary report. The "View Log File" link is grayed out. It seemed to work when the project I was building was a ".sln" file. What magic voodoo is baked deep in to the heart of the common MSBuild files to make this log link work properly, and how can I reproduce it?
You may find your answer in these posts from Jason Prickett:
TFS2010 – Changing The Way Build Information IS Displayed
TFS2010 – Customizing the Build Details View – Summary View
Important to note is that the MSBuild Log File will only appear if you enabled inside the build definition to copy output to the Drop Folder. If that option is disabled, the link will not appear in the build log view.
In TFS while we fire a build. the build log is generated with all the details. like testcases result, code analysis etc...
How do I add some more details in build log? Which API need to be used to edit build log from custom activity?
Please provide me some article links if possible.