Skip to content

Grunt plugin to create release and upload artifacts to Sentry

License

Notifications You must be signed in to change notification settings

typora/grunt-sentry-files

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-sentry-files Build Status

Creates release and uploads artifacts to Sentry

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-sentry-files --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-sentry-files');

The "sentry_files" task

Overview

In your project's Gruntfile, add a section named sentry_files to the data object passed into grunt.initConfig().

grunt.initConfig({

  sentry_files: {
    dist: {
      organisation: '<Organisation Name>',
      authorisationToken: '<AuthorisationToken>',
      project: '<Project Name>',
      releaseId: '<Release ID/Version>',
      files: [
        {
          file: '<File Path>',
          name: '<File Mapping Path>',
        },
        {
          file: '<File Path>',
          name: '<File Mapping Path>',
        },
      ],
      /**
       * Optional parameters
       */
      refs: [{
        repository: 'my-repo',
        commit: '2da95dfb052f477380608d59d32b4ab9',
      }],
      projects:[
        'my-project',
        'my-other-project',
      ],
    }
  }
  
});

Find more information here

Parameters

organisation [String] - Sentry Organisation Slug.
authorisationToken [String] - Sentry Organisation Authorisation Token. (Go to https://sentry.io/api/ to create)
project [String] – Sentry Project Slug.
releaseId [String] – Release Identifier/Version.

Optional Parameters:

refs [Object[]] - Object with repository and commit information (https://blog.sentry.io/2017/05/01/release-commits.html).
projects [String[]] - Name of projects in Sentry.

Contributors

About

Grunt plugin to create release and upload artifacts to Sentry

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%