Skip to content

Add parenthesis support for if: conditions

What does this MR do?

Implements #230938 (closed)

Fixes #232639 (closed)

Allow to create a complex expressions and conditions with () in expressions:

  • supports only:variables:
  • supports rules:if:

Example:

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

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Fabio Pitino

Merge request reports

Loading