I’d like to have one build configuration that has two steps - build, and then run Octopus Release. When I do this, I noticed Octopus was picking up the wrong package. So I put the --packageversion parameter in, and I was getting errors that the package wasn’t found; however, when I went in the UI for Octopus, I could find it.
So I put a step in the build script that called a command line script that waited for 60 seconds, but still, it didn’t work. So I’m assuming that TeamCity doesn’t upload the package until AFTER the build configuration is done running.
This means I have to create a separate build configuration for deployment with a dependency on the first.
I’d rather not do this - as I have a lot of projects. So my question is, is there any way to have a single build configuration with two build steps, and get Octopus to pick up the NuGet file from the first step for its use?