def get_symlink_output(pull_number, job_name, build_number):
  """Return the location where the symlink should be created."""
  # GCS layout is defined here:
  # https://github.com/kubernetes/test-infra/tree/master/gubernator#job-artifact-gcs-layout
  if not pull_number:
    # Symlinks are only created for pull requests.
    return ""
  output = ("gs://kubernetes-jenkins/pr-logs/directory/"
            "{job}/{build}.txt").format(
                job=job_name,
                build=build_number)
  return output