You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add try/catch around teardown code to avoid errors like this:
An error occurred in a custom teardown action.
Teardown error: System.InvalidOperationException: The context data has not been setup.
at Cake.Core.CakeDataService.Get[TData]() in C:\projects\cake\src\Cake.Core\CakeDataService.cs:line 32
at Cake.Core.CakeEngineActions.<>c__DisplayClass21_0`1.<RegisterTeardown>b__0(ITeardownContext context) in
C:\projects\cake\src\Cake.Core\CakeEngineActions.cs:line 64
at Cake.Core.CakeEngine.PerformTeardown(IExecutionStrategy strategy, ICakeContext context, Stopwatch stopWatch, CakeReport report, Boolean
exceptionWasThrown, Exception thrownException) in C:\projects\cake\src\Cake.Core\CakeEngine.cs:line 493
https://travis-ci.org/GitTools/GitVersion/jobs/495911487#L1914
// var message = "@/all Version " + parameters.Version.SemVersion + " of the GitVersion has just been released, https://www.nuget.org/packages/GitVersion.";
86
+
87
+
// var postMessageResult = Gitter.Chat.PostMessage(
// Error("Failed to send message: {0}", postMessageResult.Error);
99
+
// }
100
+
// }
101
+
// }
102
+
}
103
+
104
+
Information("Finished running tasks.");
105
+
}
106
+
catch(Exceptionexception)
78
107
{
79
-
// if(parameters.ShouldPublish)
80
-
// {
81
-
// if(parameters.CanPostToGitter)
82
-
// {
83
-
// var message = "@/all Version " + parameters.Version.SemVersion + " of the GitVersion has just been released, https://www.nuget.org/packages/GitVersion.";
84
-
85
-
// var postMessageResult = Gitter.Chat.PostMessage(
0 commit comments