created pipeline using jenkins, script is given.Tag gets created on qa and gets checked out on uat. facing the below error.
RC-20240708-0956
/tmp/jenkins6430156383955054035.sh: line 6: [[: RC-20240708-0956: value too great for base (error token is “0956”)
If time is greater than 10, it gets check out, Otherwise it throws this error.
QA:
git tag -a RC-$DATE || exit 1
git push origin RC-$DATE || exit 1
UAT:
git fetch –tags
git checkout $BRANCH || exit 1
i have tried putting “” arounf tags. still the same error.