Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built in variables can also be accessed within when condition #2486

Open
dtrdic opened this issue Apr 19, 2024 · 0 comments
Open

Built in variables can also be accessed within when condition #2486

dtrdic opened this issue Apr 19, 2024 · 0 comments
Assignees

Comments

@dtrdic
Copy link
Contributor

dtrdic commented Apr 19, 2024

Add an example on how to access the built in env variable and use it within the condition

example
when:
condition: env.CM_BRANCH == "develop" or env.CM_BRANCH == "master"

@dtrdic dtrdic self-assigned this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant