We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e42a011 commit 6d4e2c0Copy full SHA for 6d4e2c0
build/Build/Lifetime.cs
@@ -19,12 +19,16 @@ public override void Setup(Context context, ISetupContext info)
19
context.Information("Setting things up...");
20
21
context.CleanDirectory(context.General.ArtifactsDir.AsDirectoryPath());
22
- context.Information("Cleaned directory");
23
-
24
context.General.IsLocal = context.BuildSystem().IsLocalBuild;
25
- context.Information("Determined if local build");
26
27
- SetBranchInContext(context);
+ try
+ {
+ SetBranchInContext(context);
+ }
28
+ catch (Exception ex)
29
30
+ context.Error(ex);
31
32
33
context.Information(string.Join(Environment.NewLine, context.Environment.GetEnvironmentVariables()));
34
}
0 commit comments