Uses Jenkins API to get last revision number