Issues
Issues copied to clipboard
Azure DevOps Runbook Run task does not support config-as-code runbooks
Severity
Blocking at least one customer, there is a workaround but not ideal
Version
Present from any version where config-as-code runbooks are enabled
Latest Version
I could reproduce the problem in the latest build
What happened?
Support for storing runbooks in Git for a config-as-code enabled project is rolling out to Octopus Cloud customers.
The Octopus Deploy Extension for Azure DevOps has a task which can be used in build and release pipelines to run a runbook. This extension does not currently support running runbooks that have been converted to be stored in a Git repository. Attempting to use this task will result in an error There was a problem with your request. Received a request for a version-controlled resource on a non-version control route. To access this resource, include a Git ref in the route.
Reproduction
On an Octopus Cloud instance that has support for runbooks stored in Git for config-as-code enabled projects:
- Create a new project and a runbook or convert runbooks in an existing project to be stored in a Git repository.
- Use the Runbook Run task to attempt to run a runbook
Error and Stacktrace
Failed to execute command. There was a problem with your request.
Received a request for a version-controlled resource on a non-version control route. To access this resource, include a Git ref in the route.
Error: There was a problem with your request.
Received a request for a version-controlled resource on a non-version control route. To access this resource, include a Git ref in the route.
at new t (/home/vsts/work/_tasks/OctopusRunRunbook_5a2273e0-aa4f-4502-bcba-6817835e2bbd/6.0.1071/index.js:2:1890)
at bM (/home/vsts/work/_tasks/OctopusRunRunbook_5a2273e0-aa4f-4502-bcba-6817835e2bbd/6.0.1071/index.js:46:3493)
at e.handleError (/home/vsts/work/_tasks/OctopusRunRunbook_5a2273e0-aa4f-4502-bcba-6817835e2bbd/6.0.1071/index.js:46:2689)
at e.<anonymous> (/home/vsts/work/_tasks/OctopusRunRunbook_5a2273e0-aa4f-4502-bcba-6817835e2bbd/6.0.1071/index.js:46:3272)
at m (/home/vsts/work/_tasks/OctopusRunRunbook_5a2273e0-aa4f-4502-bcba-6817835e2bbd/6.0.1071/index.js:46:2146)
at Object.throw (/home/vsts/work/_tasks/OctopusRunRunbook_5a2273e0-aa4f-4502-bcba-6817835e2bbd/6.0.1071/index.js:46:1429)
at m (/home/vsts/work/_tasks/OctopusRunRunbook_5a2273e0-aa4f-4502-bcba-6817835e2bbd/6.0.1071/index.js:46:1038)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
More Information
No response
Workaround
Potential workarounds include:
- Use the
octopuscli in a custom script instead of the task. The CLI can be installed into a build or release pipeline using the Octopus CLI Installer task.