Very confused on why this job is added to the pipeline, despite the condition being not satisfied:
rules:
- if: $COMMIT_HASH != "$CI_COMMIT_SHORT_SHA"
The $COMMIT_HASH takes the default value of $CI_COMMIT_SHORT_SHA and when I troubleshot this on the script, I found that that they are indeed identical:
echo "COMMIT_HASH is $COMMIT_HASH and CI_COMMIT_SHORT_SHA is $CI_COMMIT_SHORT_SHA"
and I got:
COMMIT_HASH is 60a1ee54 and CI_COMMIT_SHORT_SHA is 60a1ee54
I feel like this is a double quote thing or something. Any help please ?