Unable to execute or publish runbook when it includes a "deploy a release" step

Hi,

I’m trying to run a runbook containing a “Deploy a release step”. When the step is disabled, the runbook executes OK. When the step is enabled, the runbook cannot be executed or published through the UI, instead producing this validation error in the pink validation panel:

There was a problem with your request.
“Please specify the Runbook Snapshot to run.”

We’re using version 2019.12.0

Thanks for any advice.

Hey Neil,

Welcome to the Octopus Forums!

This is actually a known issue. You can subscribe to the GitHub issue for updates on the progress: https://github.com/OctopusDeploy/Issues/issues/6435

In the meantime, you can use API calls to achieve this.

Here is our repository for API calls regarding releases: https://github.com/OctopusDeploy/OctopusDeploy-Api/tree/master/REST/PowerShell/Releases

This one deploys the latest successful release: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Releases/RedeployLastSuccessfulReleaseForChannel.ps1

There are a few others in there that will help you get going for various scenarios, but please let me know if the workaround gets you in a good state or if you need any help setting it up.

Thanks,
Jeremy

Feel free to reach out in the meantime.

Thanks for this - I got the workaround in place using the API.

For the benefit of others, in my particular case it worked like this:

  • Look up project ID using the project slug.

  • Look up the environment using its name.

  • Get the project dashboard from progression endpoint, then find the last successful deployment from that, then post a new deployment - all as per the GitHub samples you supplied.

  • Poll the tasks endpoint for the resulting task until it transitions to a stopped state.

1 Like

Hey Neil,

You’re very welcome!

Thanks for letting me know, I’m glad to hear you got it going. I appreciate you also leaving some tips for others.

I hope you have a great rest of your week.

Thanks,
Jeremy

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