How to get allow_failure Flags

Hi, if one of my jobs has a allow_failure:true and I want to log that value via echo, is there any pre-defined variable I can use?

There is no predefined variable. I think it would be uncommon to need one but you can request it in a future release. Something like a CI_JOB_FAILABLE variable that will tell you the status of the allow_failure boolean.

If you want to tell people that specific job might fail I would just add an echo statement saying just that
echo "This job may fail, this will not have an effect on ..."