{"id":32902,"date":"2023-02-23T17:26:10","date_gmt":"2023-02-23T17:26:10","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=32902"},"modified":"2023-02-23T17:26:11","modified_gmt":"2023-02-23T17:26:11","slug":"list-of-in-built-variables-in-octopus-deploy","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/list-of-in-built-variables-in-octopus-deploy\/","title":{"rendered":"List of in built variables in octopus deploy"},"content":{"rendered":"\n<p>Octopus Deploy provides a number of built-in variables that you can use in your deployment processes, runbooks, and scripts. Here&#8217;s a list of some of the most commonly used built-in variables:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Octopus.Action.Name: The name of the current action being executed.<\/li>\n\n\n\n<li>Octopus.Action.Package.NuGetPackageId: The ID of the package being deployed.<\/li>\n\n\n\n<li>Octopus.Action.Package.NuGetPackageVersion: The version of the package being deployed.<\/li>\n\n\n\n<li>Octopus.Action[StepName].Output.Package.InstallationDirectoryPath: The installation directory of the package being deployed.<\/li>\n\n\n\n<li>Octopus.Environment.Name: The name of the current environment.<\/li>\n\n\n\n<li>Octopus.Machine.Name: The name of the current deployment target (machine).<\/li>\n\n\n\n<li>Octopus.Release.Number: The version number of the release being deployed.<\/li>\n\n\n\n<li>Octopus.Release.Package[NuGetPackageId].Version: The version of a specific package in the current release.<\/li>\n\n\n\n<li>Octopus.Project.Name: The name of the current project.<\/li>\n\n\n\n<li>Octopus.Task.Id: The ID of the current task being executed.<\/li>\n\n\n\n<li>Octopus.Web.BaseUrl: The base URL of the Octopus server web interface.<\/li>\n\n\n\n<li>Octopus.Deployment.Created: The date and time when the deployment was created.<\/li>\n\n\n\n<li>{Octopus.time.hour}<\/li>\n\n\n\n<li>{Octopus.time.minute}<\/li>\n\n\n\n<li>{Octopus.time.second}<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Reference<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>https:\/\/octopus.com\/docs\/projects\/variables\/system-variables<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Octopus Deploy provides a number of built-in variables that you can use in your deployment processes, runbooks, and scripts. Here&#8217;s a list of some of the most commonly used built-in&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-32902","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=32902"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32902\/revisions"}],"predecessor-version":[{"id":32903,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32902\/revisions\/32903"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=32902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=32902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=32902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}