You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Descriptors provide a mechanism to autocomplete values which may not be known until build execution time.   

Workspace

NameDescriptionTypeExample
 The disk location on the server for the build workspacestring$Workspace$\testfolder

Build

NameDescriptionTypeExample
IdUnique Integer allocated for this buildstring$Build.Id$
VersionThe build version. This is derived from the configuration 'Version Format String' field on the configuration details tabVersion$Build.Version.Default.Major$
StartedByThe username of the user who initiated the buildstring$Build.StartedBy$
IsFeatureBranchBuildUtilized via build triggers, this descriptor is set to true when a build is triggered on a non-default branchBoolean$Build.IsFeatureBranchBuild$
BuildNumberThe total number of buildsNumeric$Build.BuildNumber$
Metrics Metrics$Build.Metrics$
HasNewChanges Boolean$Build.HasNewChanges$
LinkUrl string$Build.LinkUrl$

Configuration

NameDescriptionTypeExample
NameName of the Configuration as defined on the Configuration Detailsstring$Configuration.Name$

Agent

NameDescriptionTypeExample
Port string$Agent.Port
Hostname string 
Now date time 
NowUTC date time 
InstallPath string 
GetUserEnvironmentVairable string 
GetMachineEnvironmentVairable string 
List of Property Collectors Property Collector$Agent.NuGet.Default.Path$

Project

NameDescriptionTypeExample
Name string$Project.Name.ToLower$
Description string$Project.Description.ToLower$
Slug string$Project.Slug.ToLower$

Source

NameDescriptionTypeExample
List of the repositories associated with configuration Repository$Source.Reponame

Server

NameDescriptionTypeExample
Now DateTime$Server.Now.Day$
NowUtc DateTime$Server.NowUtc.Month$
Hostname  $Server.Hostname.ToLower$
InstallPath  $Server.InstallPath.ToLower$
Url  $Server.Url.ToLower$

Repository (used by $Source )

NameDescriptionTypeExample
Branch String$Source.aa.Branch.ToLower$
BranchName String$Source.aa.BranchName.ToLower$
LatestChangeset Changeset$Source.aa.LatestChangeset.Comment$
Path String$Source.aa.Path.ToLower$
Tag String$Source.aa.Tag.ToLower$
Type String$Source.aa.Type$
Url String$Source.aa.Url$

Changeset (used by $Source)

NameDescriptionTypeExample
Id   
Comment   
Repositoryusername   
Branch   
Branchname String 
Created Date time 
Filecount int 
Committerusername String 
Committerfullname String 

Stage (used by )

NameDescriptionTypeExample
Name   
Metrics   

Metrics

NameDescriptionTypeExample
Compiler   
Unit Tests   

Version (used by $Source)

NameDescriptionTypeExample
Major   
Minor   
Build   
Revision   
  • No labels