If this feature is important, you may take a look at the similar tool
Invoke-Build. It supports such
features as two functions defined in a build script: Enter-Build (invoked
before the first task, a place for initialization) and Exit-Build (invoked
when a build is finished or failed, i.e. always, a place for clean up).
There is not such an option, as far as I know. There are a few related issues:
If this feature is important, you may take a look at the similar tool Invoke-Build. It supports such features as two functions defined in a build script:
Enter-Build(invoked before the first task, a place for initialization) andExit-Build(invoked when a build is finished or failed, i.e. always, a place for clean up).