Skip to content

Add doc for environment state - #3319

Open
yangguoif wants to merge 8 commits into
mainfrom
yangguo/BMBB-661-doc-for-environment-state
Open

Add doc for environment state#3319
yangguoif wants to merge 8 commits into
mainfrom
yangguo/BMBB-661-doc-for-environment-state

Conversation

@yangguoif

@yangguoif yangguoif commented Aug 9, 2026

Copy link
Copy Markdown

Background

BMBB-661 : Support for Environment State is added into Octopus, we should update related doc in Environment and Ephemeral Environment.

What's changed

This PR

  • adds doc about Environment State under Environment.
  • adds doc about Environment URL specifically for Ephemeral Environment, attached a final result as a screenshot.

How to review

Proof reading is highly appreciated. Please checkout the preview built by CI (after CI shows green tick), recommend starting from docs/projects/ephemeral-environments#environment-urls, clicking the link to check the doc related to Environment State.

@yangguoif yangguoif changed the title Yangguo/bmbb 661 doc for environment state Add doc for environment state Aug 9, 2026
@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3319.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@yangguoif
yangguoif force-pushed the yangguo/BMBB-661-doc-for-environment-state branch from 75be84c to 746257b Compare August 9, 2026 22:12
Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated
Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated

@geofflamrock geofflamrock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good, I've left a few small suggestions and questions, happy to pair on working through anything here.

Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated
Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated
Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated
Comment thread src/pages/docs/projects/ephemeral-environments/index.md Outdated
Comment thread src/pages/docs/projects/ephemeral-environments/index.md
yangguoif and others added 3 commits August 10, 2026 13:55
Co-authored-by: Geoff Lamrock <geoff.lamrock@gmail.com>
Co-authored-by: Geoff Lamrock <geoff.lamrock@gmail.com>

@geofflamrock geofflamrock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and is pretty much ready to go I think. I've left a few final thoughts after a second read-through and we may end up wanting to adjust some of that screenshot but this prob doesn't need another look at we can just do those and merge when ready.

Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated
Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated
Comment thread src/pages/docs/infrastructure/environments/environment-state.md Outdated
| `Octopus.Environment.MachinesInRole[role]` | The machines with the specified target tag being deployed to. | `machines-123,machines-124` |
| `Octopus.Environment.Name` | The name of the environment. | Production |
| `Octopus.Environment.SortOrder` | The order applied to the environment on the dashboard and elsewhere. | `3` |
| `Octopus.Environment.State[key]` | The value of an [environment state](/docs/infrastructure/environments/environment-state) entry with the given key. | `#{Octopus.Environment.State[appUrl]}` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prob want this to match the one listed in the variable dropdown so Octopus.Environment.State[_key_]

@yangguoif yangguoif Aug 11, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking it would be better to match the styles in this doc, e.g. Octopus.Environment.MachinesInRole[role] above. It does not really feel necessary to have _ for documentation purpose? The [] should be pretty clear to indicate how to use this variable.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does Octopus.Environment.MachinesInRole appear in the variable picker? Having the docs be consistent within themselves is a pretty reasonable result, so long as it's clear which you are right it prob is with the []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants