[REF][runbot_prebuild] Add short sha fields.function and fix variable error