Skip to content

Instantly share code, notes, and snippets.

@devlead
Last active February 10, 2020 18:06
Show Gist options
  • Save devlead/88ddef11b8954b29441757dc44c6990c to your computer and use it in GitHub Desktop.
Save devlead/88ddef11b8954b29441757dc44c6990c to your computer and use it in GitHub Desktop.
teardown_errorlog.cake
Task("BOOM")
.Does(() => throw new Exception("BOOM"));
Teardown(ctx => {
for(var i = 1; i <= 15; i++)
{
Information("Teardown {0}", i);
}
});
RunTarget("BOOM");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment