When the GitReleaseManager tasks were copied over from the Cake.Recipe project, the BuildVersion Setup Context was left in place however, there was no Setup Task created to define what this is. As a result, when attempting to run these tasks, they failed, due to the context not being configured.
This didn't cause a problem locally, since the BuildVersion class is defined, but the tasks were attempted to be executed but skipped, so verification of the setup context existing wasn't done.
It wasn't until the tasks were run on the TeamCity server, where these tasks are exercised, that this problem presented itself 😢
When the GitReleaseManager tasks were copied over from the Cake.Recipe project, the
BuildVersion
Setup Context was left in place however, there was no Setup Task created to define what this is. As a result, when attempting to run these tasks, they failed, due to the context not being configured.This didn't cause a problem locally, since the
BuildVersion
class is defined, but the tasks were attempted to be executed but skipped, so verification of the setup context existing wasn't done.It wasn't until the tasks were run on the TeamCity server, where these tasks are exercised, that this problem presented itself 😢