1.0.0 • Published 7 years ago

grunt-sentry-files v1.0.0

Weekly downloads
16
License
-
Repository
github
Last release
7 years ago

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