I have kept ! in front of expression so that it would evaluate to true but the stage is skipped.
pipeline { agent any environment { REQUIRED_REPO_