code: def _build_result_metainfo(args):
          
          data = dict()
          if hasattr(args, "branch") and args.branch:
              data["build_branch"] = args.branch
          if hasattr(args, "commitId") and args.commitId:
              data["buildcommit"] = args.commitId
          if hasattr(args, "gitUrl") and args.gitUrl:
              data["build_git_url"] = args.gitUrl
          if hasattr(args, "buildUrl") and args.buildUrl:
              data["build_url"] = args.buildUrl
          if hasattr(args, "campaign") and args.campaign:
              data["campaign"] = args.campaign
          if hasattr(args, "jobId") and args.jobId:
              data["job_id"] = args.jobId
          if hasattr(args, "toolchain") and args.toolchain:
              data["toolchain"] = args.toolchain
          if hasattr(args, "buildDate") and args.buildDate:
              data["build_date"] = args.buildDate
          return data
docs: Internal helper for collecting metadata from args to results