Creates release and uploads artifacts to Sentry
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');
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
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.
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.