Integration of Code Analysis and CT with Octopus Deploy tool

Dear Team,

We are existing customer of Octopus deploy tool since last 4 years and thought to connect with you mainly because of the following queries and need confirmation how to automate and to integrate the same –

• Code Analysis part in the DevOps pipeline while delivering the project through Octopus Deploy to target machine
• Continuous Testing (CT) through Octopus Deploy tool

You are welcome to reach out at any time with further questions or concerns.

Hi,

Good to hear from you!

• Code Analysis part in the DevOps pipeline while delivering the project through Octopus Deploy to target machine

It’s great you’re considering using code analysis to enhance your code quality. The code analysis would run as part of your continuous integration, ideally failing the build if the standards specified are not met. With this in place, the build artifacts should remain as they do now and Octopus Deploy will work as it does currently.

• Continuous Testing (CT) through Octopus Deploy tool

There are no testing tools built into Octopus Deploy however there are ways that you can trigger tests to run.

A couple of ways you could integrate the tests into your deployment are:

  • Have a script step in your deployment process that executes the tests
  • Call a runbook that executes your test suite at the end of your deployment. You could also have a script step that executes your tests

Both of those options can be scoped so that they only execute in specific environments or under certain conditions.

Our community library has some templates that may be of use, it’s worth having a look on there: https://library.octopus.com/listing

Thanks,
Lianne