• Stars
    star
    131
  • Rank 266,473 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Official fastlane plugin for Sentry


Sentry Fastlane Plugin

fastlane Plugin Badge Tests Gem Version

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-sentry, you can either add it globally for all projects, or locally to an individual project.

Globally

If you install the gem globally, you can run it with any project that is setup for using fastlane.

gem install fastlane-plugin-sentry

Add the actions you want to use to your Fastfile file and call fastlane to run.

Locally

You can also add the plugin for individual projects. Navigate to your project where fastlane is already set up and run the following command:

bundle exec fastlane add_plugin sentry

Fastlane will guide you through the process. It will add a Pluginfile where the sentry plugin is listed and also update the Gemfile and Gemfile.lock to include it as a dependency.

# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

gem 'fastlane-plugin-sentry'

Add the actions you want to use to your Fastfile file and call bundle exec fastlane to run.

Sentry Actions

A subset of actions provided by the CLI: https://docs.sentry.io/learn/cli/

Authentication & Configuration

auth_token is the preferred authentication method with Sentry. This can be obtained on https://sentry.io/api/. api_key still works but will eventually become deprecated. This can be obtained through the settings of your project. Also note that as of version 1.2.0 you no longer have to provide the required parameters, we will try to fallback to your .sentryclirc config file if possible.

The following environment variables may be used in place of parameters: SENTRY_API_KEY, SENTRY_AUTH_TOKEN, SENTRY_ORG_SLUG, and SENTRY_PROJECT_SLUG.

Uploading Debug Information Files

sentry_upload_dif(
  api_key: '...', # Do not use if using auth_token
  auth_token: '...', # Do not use if using api_key
  org_slug: '...',
  project_slug: '...',
  path: '/path/to/files', # Optional. Defaults to '.' when no value is provided. Path(s) can be a string, a comma-separated string, or an array of strings.
)

The SENTRY_DSYM_PATH environment variable may be used in place of the dsym_path parameter.

Further options:

  • type: Optional. Only consider debug information files of the given type. By default, all types are considered. Valid options: 'dsym', 'elf', 'breakpad', 'pdb', 'pe', 'sourcebundle', 'bcsymbolmap'.
  • no_unwind: Optional. Do not scan for stack unwinding information. Specify this flag for builds with disabled FPO, or when stackwalking occurs on the device. This usually excludes executables and dynamic libraries. They might still be uploaded, if they contain additional processable information (see other flags)".
  • no_debug: Optional. Do not scan for debugging information. This will usually exclude debug companion files. They might still be uploaded, if they contain additional processable information (see other flags)".
  • no_sources: Optional. "Do not scan for source information. This will usually exclude source bundle files. They might still be uploaded, if they contain additional processable information (see other flags)".
  • ids: Optional. Search for specific debug identifiers.
  • require_all: Optional. Errors if not all identifiers specified with --id could be found.
  • symbol_maps: Optional. Optional path to BCSymbolMap files which are used to resolve hidden symbols in dSYM files downloaded from iTunes Connect. This requires the dsymutil tool to be available.
  • derived_data: Optional. Search for debug symbols in Xcode's derived data.
  • no_zips: Do not search in ZIP files.
  • info_plist: Optional. Optional path to the Info.plist. We will try to find this automatically if run from Xcode. Providing this information will associate the debug symbols with a specific ITC application and build in Sentry. Note that if you provide the plist explicitly it must already be processed.
  • no_reprocessing: Optional. Do not trigger reprocessing after uploading.
  • force_foreground: Optional. Wait for the process to finish. By default, the upload process will detach and continue in the background when triggered from Xcode. When an error happens, a dialog is shown. If this parameter is passed Xcode will wait for the process to finish before the build finishes and output will be shown in the Xcode build output.
  • include_sources: Optional. Include sources from the local file system and upload them as source bundles.
  • wait: Wait for the server to fully process uploaded files. Errors can only be displayed if --wait is specified, but this will significantly slow down the upload process.
  • upload_symbol_maps: Optional. Upload any BCSymbolMap files found to allow Sentry to resolve hidden symbols, e.g. when it downloads dSYMs directly from App Store Connect or when you upload dSYMs without first resolving the hidden symbols using --symbol-maps.

Or the soon to be deprecated way:

sentry_upload_dsym(
  api_key: '...', # Do not use if using auth_token
  auth_token: '...', # Do not use if using api_key
  org_slug: '...',
  project_slug: '...',
  symbol_maps: 'path to bcsymbols folder', # use this if you have a bcsymbols folder
  dsym_path: './App.dSYM.zip',
  info_plist: '...' # optional, sentry-cli tries to find the correct plist by itself
)

Creating & Finalizing Releases

sentry_create_release(
  api_key: '...',
  auth_token: '...',
  org_slug: '...',
  project_slug: '...',
  version: '...', # release version to create
  app_identifier: '...', # pass in the bundle_identifer of your app
  finalize: true # Whether to finalize the release. If not provided or false, the release can be finalized using the sentry_finalize_release action
)

Uploading Files & Sourcemaps

Useful for uploading build artifacts and JS sourcemaps for react-native apps built using fastlane.

sentry_upload_sourcemap(
  api_key: '...',
  auth_token: '...',
  org_slug: '...',
  project_slug: '...',
  version: '...',
  app_identifier: '...', # pass in the bundle_identifer of your app
  build: '...', # Optionally pass in the build number of your app
  dist: '...', # optional distribution of the release usually the buildnumber
  sourcemap: ['main.jsbundle', 'main.jsbundle.map'], # Sourcemap(s) to upload. Path(s) can be a comma-separated string or an array of strings.
  rewrite: true
)

Uploading Proguard Mapping File

sentry_upload_proguard(
  api_key: '...', # Do not use if using auth_token
  auth_token: '...', # Do not use if using api_key
  org_slug: '...',
  project_slug: '...',
  android_manifest_path: 'path to merged AndroidManifest file', # found in `app/build/intermediates/manifests/full`
  mapping_path: 'path to mapping.txt to upload',
)

Associating commits

Useful for telling Sentry which commits are associated with a release.

sentry_set_commits(
  version: '...',
  app_identifier: '...', # pass in the bundle_identifer of your app
  build: '...', # Optionally pass in the build number of your app
  auto: false, # enable completely automated commit management
  clear: false, # clear all current commits from the release
  commit: '...', # commit spec, see `sentry-cli releases help set-commits` for more information
  ignore_missing: false # Optional boolean value: When the flag is set and the previous release commit was not found in the repository, will create a release with the default commits count (or the one specified with `--initial-depth`) instead of failing the command.
)

Create deploy

Creates a new release deployment for a project on Sentry.

sentry_create_deploy(
  api_key: '...', # Do not use if using auth_token
  auth_token: '...', # Do not use if using api_key
  org_slug: '...',
  project_slug: '...',
  version: '...',
  app_identifier: '...', # pass in the bundle_identifer of your app
  build: '...', # Optionally pass in the build number of your app
  env: 'staging', # The environment for this deploy. Required.
  name: '...', # Optional human readable name
  deploy_url: '...', # Optional URL that points to the deployment
  started: 1622630647, # Optional unix timestamp when the deployment started
  finished: 1622630700, # Optional unix timestamp when the deployment finished
  time: 180 # Optional deployment duration in seconds. This can be specified alternatively to `started` and `finished`
)

Specify custom sentry-cli path

Starting with version 1.13.0, the plugin bundles both macOS and Windows 64 bit executables of sentry-cli. You can also specify a custom sentry-cli path by adding sentry_cli_path to any action.

Checking the sentry-cli is installed

Useful for checking that the sentry-cli is installed and meets the minimum version requirements before starting to build your app in your lane.

sentry_check_cli_installed()

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

For some more detailed help with plugins problems, check out the Plugins Troubleshooting doc in the main fastlane repo.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation in the main fastlane repo.

About fastlane

fastlane automates building, testing, and releasing your app for beta and app store distributions. To learn more about fastlane, check out fastlane.tools.

More Repositories

1

sentry

Developer-first error tracking and performance monitoring
Python
36,992
star
2

sentry-javascript

Official Sentry SDKs for JavaScript
TypeScript
7,600
star
3

self-hosted

Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
Shell
7,130
star
4

responses

A utility for mocking out the Python Requests library.
Python
4,030
star
5

sentry-php

The official PHP SDK for Sentry (sentry.io)
PHP
1,779
star
6

raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
Python
1,678
star
7

sentry-python

The official Python SDK for Sentry.io
Python
1,533
star
8

sentry-react-native

Official Sentry SDK for React-Native
TypeScript
1,509
star
9

sentry-laravel

The official Laravel SDK for Sentry (sentry.io)
PHP
1,157
star
10

sentry-java

A Sentry SDK for Java, Android and other JVM languages.
Kotlin
1,097
star
11

sentry-ruby

Sentry SDK for Ruby
Ruby
909
star
12

sentry-cli

A command line utility to work with Sentry.
Rust
833
star
13

sentry-go

The official Go SDK for Sentry (sentry.io)
Go
767
star
14

milksnake

A setuptools/wheel/cffi extension to embed a binary data in wheels
Python
764
star
15

sentry-cocoa

The official Sentry SDK for iOS, tvOS, macOS, watchOS.
Objective-C
762
star
16

sentry-dart

Sentry SDK for Dart and Flutter
Dart
714
star
17

sentry-symfony

The official Symfony SDK for Sentry (sentry.io)
PHP
673
star
18

sentry-webpack-plugin

Repo moved to https://github.com/getsentry/sentry-javascript-bundler-plugins. Please open any issues/PRs there.
JavaScript
662
star
19

freight

Freight is a service which aims to make application deployments better.
Python
610
star
20

sentry-elixir

The official Elixir SDK for Sentry (sentry.io)
Elixir
597
star
21

raven-go

Sentry client in Go
Go
560
star
22

sentry-dotnet

Sentry SDK for .NET
C#
551
star
23

sentry-rust

Official Sentry SDK for Rust
Rust
515
star
24

raven-node

A standalone (Node.js) client for Sentry
JavaScript
457
star
25

symbolic

Stack trace symbolication library written in Rust
Rust
420
star
26

action-release

GitHub Action for creating a release on Sentry
TypeScript
410
star
27

sentry-kubernetes

Kubernetes event reporter for Sentry
Python
408
star
28

sentry-native

Sentry SDK for C, C++ and native applications.
C
354
star
29

docker-sentry

Docker Official Image packaging for Sentry
Python
348
star
30

pdb

A parser for Microsoft PDB (Program Database) debugging information
Rust
342
star
31

symbolicator

Native Symbolication as a Service
Rust
328
star
32

sentry-docs

Sentry's documentation (and tools to build it)
MDX
313
star
33

rb

Routing and connection management for Redis in Python
Python
300
star
34

sentry-php-sdk

This is a meta package to ship sentry-php with a recommend http client.
298
star
35

spotlight

Your Universal Debug Toolbar
TypeScript
290
star
36

snuba

Search the seas for your lost treasure.
Python
272
star
37

relay

Sentry event forwarding and ingestion service.
Rust
246
star
38

raven-csharp

Superseded by: https://github.com/getsentry/sentry-dotnet
C#
232
star
39

sentry-electron

The official Sentry SDK for Electron
TypeScript
217
star
40

sentry-plugins

Official plugins for Sentry server
Python
212
star
41

zeus

WIP: A dashboard for CI
Python
209
star
42

rust-sourcemap

A library for rust that implements basic sourcemap handling
Rust
188
star
43

sentry-unity

Development of Sentry SDK for Unity
C#
187
star
44

action-github-app-token

Gets a GitHub auth token for a GitHub App installation
TypeScript
179
star
45

sentry-wizard

Sentry Project Setup Wizard
TypeScript
139
star
46

sentry-slack

DEPRECATED Slack integration for Sentry
Python
135
star
47

sentry-android-gradle-plugin

Gradle plugin for Sentry Android. Upload proguard, debug files, and more.
Kotlin
130
star
48

action-git-diff-suggestions

This GitHub Action will take the current git changes and apply them as GitHub code review suggestions
TypeScript
122
star
49

craft

The universal Sentry release CLI 🚀
TypeScript
118
star
50

examples

Collection of all different kinds of Sentry SDKs and integrations
C#
118
star
51

sentry-capacitor

The official Sentry SDK for Capacitor
TypeScript
114
star
52

sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
TypeScript
111
star
53

sentry-kotlin-multiplatform

Sentry SDK for Kotlin Multiplatform
Kotlin
104
star
54

raven-objc

This SDK is deprecated. Use https://github.com/getsentry/sentry-cocoa
Objective-C
98
star
55

sentry-clj

Sentry SDK for Clojure
Clojure
98
star
56

sentry-jira

A Plugin for sentry that lets you create JIRA issues
Python
95
star
57

raven-aiohttp

An aiohttp transport for raven-python
Python
90
star
58

sentry-android

MOVED: https://github.com/getsentry/sentry-java
87
star
59

pytest-responses

py.test integration for responses
Python
83
star
60

sentry-github

A Sentry extension which integrates with GitHub.
Python
79
star
61

libsourcemap

DEPRECATED: Implements efficient sourcemap processing for Python in Rust
Rust
78
star
62

sentry-rrweb

Moved to: https://github.com/getsentry/sentry-javascript/tree/master/packages/replay#sentry-session-replay
TypeScript
73
star
63

sentry-unreal

Unreal Engine
C++
71
star
64

sentry-cordova

The official Sentry SDK for Cordova
TypeScript
68
star
65

sentry-dart-plugin

A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli
Dart
63
star
66

sourcemaps.io

Web-based Source Map validator
TypeScript
58
star
67

breakpad-tools

Prebuilt tools and examples to work with Breakpad's minidumps
Makefile
53
star
68

sentry-webhooks

An extension for Sentry which allows creation various web hooks.
Python
52
star
69

dotnet-assembly-alias

Tool to rename .NET assemblies and references
C#
50
star
70

sentry-netlify-build-plugin

The Sentry Netlify build plugin automatically notifies Sentry of new releases being deployed to your site.
JavaScript
45
star
71

develop

TypeScript
43
star
72

babel-gettext-extractor

A fork of babel-gettext-plugin that works with older versions of node and supports comment and location extraction
JavaScript
43
star
73

sentry-mobile-release-health-app

Sentry Mobile App
Dart
42
star
74

sentry-xamarin

Sentry for Xamarin Native and Xamarin.Forms
C#
41
star
75

raven-swift

This SDK is deprecated. Use https://github.com/getsentry/sentry-cocoa
40
star
76

pytest-sentry

Track flaky tests in Sentry
Python
39
star
77

sentry-auth-github

GitHub SSO provider for Sentry
Python
39
star
78

action-visual-snapshot

Save and compare your visual snapshots
TypeScript
38
star
79

sentry-fullstory

The Sentry-FullStory integration seamlessly integrates the Sentry and FullStory platforms.
TypeScript
37
star
80

sentry-phabricator

A Sentry extension which integrates with Phabricator
Python
36
star
81

platformicons

A platform and framework icon font.
TypeScript
36
star
82

arroyo

A library to build streaming applications that consume from and produce to Kafka.
Python
35
star
83

sentry-auth-google

Google Apps SSO provider for Sentry
Python
34
star
84

integration-platform-example

An example kanban application which explores the ways developers can build apps on Sentry's integration platform
TypeScript
32
star
85

unity

Unity SDK UPM package
Objective-C
31
star
86

vanguard

TypeScript
29
star
87

profiling-node

The code for this repo now lives in https://github.com/getsentry/sentry-javascript/tree/develop/packages/profiling-node
TypeScript
28
star
88

sentry-vscode

VSCode editor integration for Sentry
TypeScript
28
star
89

probot-report

Probot app that sends periodic reminder emails for outstanding PR reviews
JavaScript
28
star
90

hackweek-coda

A queue thing with a sprinkle of Italian
Python
27
star
91

sentry-replay

Moved to http://github.com/getsentry/sentry-javascript
TypeScript
27
star
92

symbol-collector

Clients and Server to collect system symbols.
C#
27
star
93

perl-raven

A perl sentry client
Perl
26
star
94

sentry_airflow

Airflow integration with Sentry (https://sentry.io)
Python
26
star
95

cloud-run-typescript-template

Template for Google Cloud Run (typescript)
JavaScript
24
star
96

symsynd

C++
23
star
97

sentry-relay-attic

A relay server for Sentry (https://getsentry.com)
Rust
23
star
98

freight-cli

A command line interface to Freight
Python
22
star
99

xds

xDS service for Envoy
Go
22
star
100

gib-potato

More Potato, more awesome 🥔
PHP
21
star