Deploy, execute CI step, cleanup

Hi, I’ve got a deploy project for a console app which installs a set of db tests in my testing environment using dbUp. A test runner in TeamCity follows after the Octopus Release step…

What I’d like to be able to do is then execute the console app again with a different parameter to run a cleanup, which I thought could be via some sort of unsinstall.ps1 in the same octopack/nuget package. How would I go about executing that script remotely? I take it Octopus has no concept of uninstalling a release which could be used to trigger this?

Hi Andrew

Thanks for getting in touch!

If I understand you problem correctly, you are looking for a extra step that to clean up/teardown the environment, a couple options come into my mind

  • Add an extra step in Teamcity to do the cleanup
  • Add a project in Octopus with a cleanup step, add an extra step in Teamcity to ask Octopus to do a deployment from that project

I hope this helps!

Let me know what you think and how you go


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.