Skip to content

Conversation

@runningcode
Copy link
Contributor

@runningcode runningcode commented Dec 10, 2025

Summary

Sets the SENTRY_PIPELINE environment variable for all sentry-cli invocations to identify the plugin and version being used.

Changes

  • Updated SentryHelper.call_sentry_cli to set SENTRY_PIPELINE environment variable to sentry-fastlane-plugin/<version>
  • The version is dynamically read from Fastlane::Sentry::VERSION constant, so it updates automatically when the plugin version is bumped
  • Updated test to dynamically use the VERSION constant instead of hardcoding the version string

Related PRs:
getsentry/sentry-android-gradle-plugin#1036
getsentry/launchpad#464
getsentry/sentry#103062
#365

🤖 Generated with Claude Code

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 017ca84

Copy link
Member

@philprime philprime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

runningcode added a commit to getsentry/sentry-cli that referenced this pull request Dec 15, 2025
…ads (EME-606) (#2994)

## Summary

Automatically track Sentry plugin versions in build uploads by parsing
the existing `SENTRY_PIPELINE` environment variable. This enables size
analysis and build distribution tracking by storing plugin version
metadata in the PreprodArtifact database table.

## Changes

### Plugin Version Detection
- Reads the existing `SENTRY_PIPELINE` environment variable
- Parses format: `sentry-gradle-plugin/4.12.0` or
`sentry-fastlane-plugin/1.2.3`
- Only extracts versions for recognized Sentry plugins:
  - `sentry-gradle-plugin`
  - `sentry-fastlane-plugin`

### Metadata File Format
The `.sentry-cli-metadata.txt` file inside uploaded zips now includes
detected plugin info:
```
sentry-cli-version: 2.58.2
sentry-gradle-plugin: 4.12.0
```

Related PRs:
getsentry/launchpad#464
getsentry/sentry#103062
getsentry/sentry-android-gradle-plugin#1036
getsentry/sentry-fastlane-plugin#365

---------

Co-authored-by: Claude <[email protected]>
runningcode and others added 2 commits December 15, 2025 09:15
Set SENTRY_PIPELINE environment variable for all sentry-cli invocations
to identify the plugin and version being used. The value is set to
"sentry-fastlane-plugin/<version>" where version is dynamically read
from the Fastlane::Sentry::VERSION constant.

This allows Sentry to track which integration is being used to upload
data and helps with debugging and analytics.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants