It is giving invalid expression syntax. Could anyone please help how we can do.
If we remove $env yml will be fine but $master is giving null. So job will not trigger.
stages:
- build
build:
stage: build
script:
- echo $master # It is giving null
- echo $env:master # It is giving value
rules:
- if: $CI_COMMIT_REF_NAME == “master” && $env:master == “Production”