Multiple !reference keword on one line

Multiple !reference keword on one line

Hi, everyone!
It is possible to use several !reference tags in one line like this:

some-job:
   rules:
      - if: !reference [.rule1, if]  &&  !reference [.rule2, if]

.rule1:
   if: $SOME_VARIABLE == "some_value"
.rule2:
   if: $SOME_VARIABLE2 == "some_value2"

Or any way to merge several “if” rules in one with logical AND? Like this:

some-job:
   rules:
      - if: <rule1_condition> && <rule2_condition>

.rule1:
   if: $SOME_VARIABLE == "some_value"
.rule2:
   if: $SOME_VARIABLE2 == "some_value2"

Thanks for help!

1 Like