Skip to content

Commit c76a130

Browse files
committed
Print branch
1 parent 865f929 commit c76a130

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.cake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ var nuGetApiKey =
2424
EnvironmentVariable("NuGetApiKey") != null ? EnvironmentVariable("NuGetApiKey") :
2525
null;
2626

27+
if (TFBuild.IsRunningOnAzurePipelinesHosted)
28+
{
29+
Information("BRANCH: " + TFBuild.Environment.Repository.Branch);
30+
}
31+
2732
var artifactsDirectory = Directory("./Artifacts");
2833
var versionSuffix = string.IsNullOrEmpty(preReleaseSuffix) ? null : preReleaseSuffix + "-" + buildNumber.ToString("D4");
2934

0 commit comments

Comments
 (0)