mohamedradwan.com - Nothing can beat experience
Post
Cancel

Why and How to use IBuildDetails and BuildDefinition?

Hi, In this episode I will talk about why and how to use IBuildDetails and buildDefinition object to get valuable information thought the build, this very important because IBuildDetails 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 Template 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

FirstStep 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

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

Result2

Part 2 BuildDefinition

How to get information from the buildDefinition

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

DropLocation1

  • Now you can message the drop location as the following

DropLocation2

  • Build and click on view log

DropLocation3

  • You can also use the full path as the following

fullPath0

  • Build and see view log

fullPath1

  • You can see what the build definition hold

ConcatenateString

That’s it

Trending Tags