Hi! I’m beginner in Octopus and trying to automate CI at our company with your product.
I’m create nuget package with software and two scripts - before install (stop service, remove files except .config) and after install (reregister and start service). Finally, I’m want to send mail to me about operation status. My steps you can see here:
Thanks for reaching out! At the moment we do not have a variable that exposes the duration time of each step. We do have a github issue open for this, in which I just added a note referencing this same conversation to help building the case for the enhancement: https://github.com/OctopusDeploy/Issues/issues/3221#issuecomment-285089502
While you cannot have the time for each step, you could use Output Variables to capture the time at certain moments in the deployment and then calculate a diff between those.
“Set start time variable” which is a Powershell script step that will create an output variable with the current time. Make sure this step only runs on the Octopus Server and not in other targets.
“Before Install”
“Deploy”
“After Install”
“Set end time variable” which is a Powershell script step that will create an output variable with the current time. Make sure this step only runs on the Octopus Server and not in other targets.
“Calculate Duration” which is a PS script step that will calculate the diff between the times on the vars created during “Set Start time variable” and “Set end time variable”. The diff result will be stored in another Output variable.
“Notify Deploy - OK/Failed” This will send the diff result of the step “Calculate Duration”
Given that you are just starting with Octopus, I would definitely recommend you to setup a test project and play with Output variables there before you change your current process. Output variables can be a tricky feature to learn
This is already possible if you set the release version schema to be based on a step’s package version (see attached GIF). You can change this setting from Projects -> [Your project] -> Settings -> "Release Versioning"
2. Do you have resellers in Russia or Europe Union? Russia resellers is preferred.
Could you please send us an email with this query to Sales@Octopus.com? Our sales rep over there will be able to give you a hand with this.