Skip to content
GitLab
Next
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #230938

Support parenthetical expressions in `rules:if`

Problem to solve

The if syntax within rules is nice, but a lack of parentheses makes complex expressions impossible to write.

Intended users

  • Devon (DevOps Engineer)

User experience goal

Proposal

Add support for () in expressions to allow for more complex evaluation. Example:

rules:
  - if: ($CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "develop") && $MY_VARIABLE

Further details

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited Jul 22, 2020 by Jason Yavorska
Assignee
Assign to
Time tracking