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
Comment thread src/pages/docs/projects/variables/system-variables.md

## Using environment state

Octopus makes each state entry available as a [variable](/docs/projects/variables) named `Octopus.Environment.State[key]` in later deployment or runbook run, where `key` is the name you set.

@caitlynstocker caitlynstocker Aug 13, 2026

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.

Could it be worth a line here like, 'Unlike other variables in Octopus, state entries will not appear listed on your project's variables page.'?

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.

At the moment this doc is under /environments, so imho we should not mix variables into this. The environment state is just injected into script as "variable" for the execution, but itself is not a type of variable. Adding this line may actually confuse reader?

I will leave it as it is for now, if we would like to clarify this bit later, we can always update the doc 😃

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.

4 participants