This is not available out of the box. It is something that is in the backlog and so should be available in a future version.
In the meantime, here is a workaround.
Add a Rollback Always
activity in your deployment. In that activity, add a component that calls a PS script or executable that would create a bug work item. A component is needed here to be able to access the different metadata of a deployment.
The different metadata available are:
- BuildDefinition
- BuildNumber
- PackageLocation
- ServerName
- ServerDnsName
- TeamProject
- TfsCollection
For example, have a __MySource__
token in your script or command and set its value to one of the metadata variable like this:
