Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Variable use in Octopus Deploy

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Stephen Heise
Word Count
1,221
Language
English
Hacker News Points
-
Summary

In the blog post, Stephen Heise discusses the challenges and considerations involved in identifying variable usage within Octopus Deploy, a popular DevOps tool. Users often seek to understand where variables are used to determine their purpose, assess the impact of changing values, or safely delete unused variables. The complexity arises from Octostache expressions, a flexible variable substitution syntax that allows for dynamic and creative variable usage, making it difficult to track all possible uses. Two potential approaches to address this issue are explored: a static search that examines code and a deployment-time search capturing variable usage during deployments. However, each method has limitations in capturing all variable usages, particularly in unusual or creative scenarios. While a static search could be implemented through existing tools like PowerShell scripts, the deployment-time search would require significant infrastructure changes. Heise questions whether developing these features would provide enough value to users, given the inherent limitations and complexity, and invites feedback from the community on the matter.