INNER CODE UNIT · Ruby

annotate_ci_build_with_prototype_build_install_link

wordpress-mobile/WordPress-Android · fastlane/lanes/build.rb:412

  def annotate_ci_build_with_prototype_build_install_link(app_display_name:)
    return unless ENV['BUILDKITE']

    install_link = 'Firebase App Distribution'
    install_url = lane_context[SharedValues::FIREBASE_APP_DISTRO_RELEASE]&.dig(:testingUri)
    install_link = "[#{install_link}](#{install_url})" unless install_url.nil?

    buildkite_annotate(
      style: 'success',
      context: "prototype-build-#{app_display_name.downcase.gsub(' ', '-')}",
      message: "#{app_display_name} Prototype Build uploaded to #{install_link}"
    )
  end

  # Mimics the subset of ActiveSupport's `String#parameterize` we rely on.
  # release-toolkit dropped its `activesupport` runtime dependency in v14.3.1,
  # so `String#parameterize` is no longer available here.
  def parameterize(string)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…