I’m trying to get Octopus version Octopus 3.12.4 to automatically deploy a package. I’m using TFS as the build server which is creating a new package and pushing it to Octopus (see attached image “New Version Uploaded.png”). I have Octopus automatic release created enabled (see attached image “Release Creation Setup.PNG”).
The release is being created (see attached image “New Deploys Created.PNG”). I have setup an Auto Deploy step (see attached image “Trigger Setup.PNG”).
However the deploys are not automatically being run. When a build is triggered in TFS I want it to be packaged and then deployed to the server automatically. I cannot figure out what I’m doing wrong or what I’m missing.
B) Set your lifecycle to automatically deploy to an environment when the releases reaches a phase. Instead of using Triggers, go to your lifecycle and add an environment to the first phase as “Deploy as soon as the release enters this phase” (See screenshot). When the release gets created, it reaches the first phase of the lifecycle by default, which will trigger the deployment.
tip: if you already have the environment on the first phase of the lifecycle, you will have to remove it and re-add it to see the options on the screenshot