sentry-ci-integration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry Ci Integration
Sentry CI 集成
Prerequisites
前提条件
- Sentry CLI installed or available in CI
- secret configured
SENTRY_AUTH_TOKEN - and
SENTRY_ORGenvironment variables setSENTRY_PROJECT - Source maps generated during build
- 已在CI环境中安装或可使用Sentry CLI
- 已配置密钥
SENTRY_AUTH_TOKEN - 已设置和
SENTRY_ORG环境变量SENTRY_PROJECT - 构建过程中已生成源码映射(Source maps)
Instructions
操作步骤
- Add SENTRY_AUTH_TOKEN secret to CI platform (GitHub, GitLab, CircleCI)
- Configure SENTRY_ORG and SENTRY_PROJECT environment variables
- Create workflow step to build application with SENTRY_RELEASE env
- Add step to create Sentry release using sentry-cli or action
- Upload source maps from build output directory
- Associate commits with release using set-commits --auto
- Finalize the release to mark it complete
- Add deploy notification step for environment tracking
- Configure checkout with fetch-depth: 0 for full git history
- Test workflow by pushing to trigger release creation
- 将SENTRY_AUTH_TOKEN密钥添加至CI平台(GitHub、GitLab、CircleCI)
- 配置SENTRY_ORG和SENTRY_PROJECT环境变量
- 创建工作流步骤,使用SENTRY_RELEASE环境变量构建应用
- 添加步骤,通过sentry-cli或action创建Sentry版本
- 从构建输出目录上传源码映射
- 使用set-commits --auto将提交记录与版本关联
- 完成版本标记,确认版本创建完成
- 添加部署通知步骤,用于环境追踪
- 配置checkout时设置fetch-depth: 0,以获取完整Git历史
- 推送代码触发版本创建,测试工作流
Output
输出结果
- Release created and finalized in Sentry
- Source maps uploaded for stack trace mapping
- Commits associated with release
- Deploy notification sent to Sentry
- 在Sentry中创建并完成版本
- 已上传源码映射,用于栈追踪映射
- 提交记录已与版本关联
- 已向Sentry发送部署通知
Error Handling
错误处理
See for comprehensive error handling.
{baseDir}/references/errors.md请查看获取完整的错误处理指南。
{baseDir}/references/errors.mdExamples
示例
See for detailed examples.
{baseDir}/references/examples.md请查看获取详细示例。
{baseDir}/references/examples.md