lib/uploadToSentry.js
function uploadToSentry(projectSlug, orgSlug, releaseVersion, assets) {
  var releaseEndpoint = makeUrl(projectSlug, orgSlug);
  var uploadEndpoint = releaseEndpoint + releaseVersion + '/files/';

  createRelease(releaseEndpoint, releaseVersion)
    .then(function() {
      return Promise.all(assets.map(uploadFile.bind(null,
                                                    uploadEndpoint,
                                                    releaseVersion
                                                    )));
    })
    .catch(function(e) {
      console.log('Release failed with error: ', e);
    });
}
function uploadToSentry(projectSlug, orgSlug, releaseVersion, assets) {
  var releaseEndpoint = makeUrl(projectSlug, orgSlug);
  var uploadEndpoint = releaseEndpoint + releaseVersion + '/files/';

  createRelease(releaseEndpoint, releaseVersion)
    .then(function() {
      return Promise.all(assets.map(uploadFile.bind(null,
                                                    uploadEndpoint,
                                                    releaseVersion
                                                    )));
    })
    .catch(function(e) {
      console.log('Release failed with error: ', e);
    });
}
function uploadToSentry ( projectSlug , orgSlug , releaseVersion , assets ) { var releaseEndpoint = makeUrl ( projectSlug , orgSlug ) ; var uploadEndpoint = releaseEndpoint + releaseVersion + '/files/' ; createRelease ( releaseEndpoint , releaseVersion ) . then ( function ( ) { return Promise . all ( assets . map ( uploadFile . bind ( null , uploadEndpoint , releaseVersion ) ) ) ; } ) . catch ( function ( e ) { console . log ( 'Release failed with error: ' , e ) ; } ) ; }
Creates a Sentry release and pushes the relevant assets to that release.
@param {String} projectName
The Sentry project this release belongs to
@param {String} releaseVersion
The release version for the js assets
@param {Array} assets
An array of filepaths to the assets that will be uploaded
Creates a Sentry release and pushes the relevant assets to that release .