2-Why and How to use IBuildDetailes and BuildDefinition?


Hi, In this episode I will talk about why and how to use IBuildDetailes and buildDefination object to get valuable information throught the build, this very important because IBuildDetailes give you all information you need to know about the running build.

You can go to my episode 1 and download the process that I will use click-here

Part 1 BuildNumber

  • First you will create a clean Teamplate and start following the image with order number, this will get the buildDetails object and assign it to my variable so you can use it throughout the build process
Create BuildDetail variable

Create BuildDetail variable

You can download my process template from the episode 1 as I mention before

  • Right click on WriteBuildMessage task and choose properties and change BuildMessageImportance.High and give the message BuildDetail.BuildNumber
Use buildNumber

Use buildNumber

Just queue a new build and open click on view log and you will see it log your build number

Output the buildNumber

Output the buildNumber

Part 2 BuildDefinition

How to get infromation from the buildDefinition

  • When you create a new build definition you set the drop location
Set Drop location

Set Drop location

  • Now you can message the drop location as the following
Message drop location

Message drop location

  • Build and click on view log
View the drop location

View the drop location

  • You can also use the full path as the following
Full path

Full path

  • Build and see view log
View log for full path

View log for full path

  • You can see what the build definition hold
Build definition info

Build definition info

That’s it


Share This: