Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmahio/azure-devops-upload-source-map-task
Tools for uploading source maps to elmah.io from Azure DevOps.
https://github.com/elmahio/azure-devops-upload-source-map-task
azure-devops elmah-io javascript-logger source-map source-maps sourcemap sourcemaps
Last synced: 25 days ago
JSON representation
Tools for uploading source maps to elmah.io from Azure DevOps.
- Host: GitHub
- URL: https://github.com/elmahio/azure-devops-upload-source-map-task
- Owner: elmahio
- License: apache-2.0
- Created: 2021-08-27T12:58:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T05:47:03.000Z (7 months ago)
- Last Synced: 2025-01-11T02:55:55.619Z (30 days ago)
- Topics: azure-devops, elmah-io, javascript-logger, source-map, source-maps, sourcemap, sourcemaps
- Language: PowerShell
- Homepage: https://docs.elmah.io/sourcemaps/#upload-from-azure-devops
- Size: 716 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# elmah.io Upload Source Map
This extension is able to upload a source map and a minified JavaScript file to [elmah.io](https://elmah.io). When uploading a source map, bundled and minified stack traces will be readable on elmah.io.
## Usage
Go to the [elmah.io Upload Source Map](https://marketplace.visualstudio.com/items?itemName=elmahio.elmah-io-upload-source-map) extension on the Azure DevOps Marketplace and click the _Get it free_ button:
![Install the extension](images/marketplace_get_it_free.png)
Select your organization and click the *Install* button:
![Select organization](images/marketplace_select_organization.png)
The task supports both Pipelines and Releases. No matter which approach you choose, you will need to replace `API_KEY` with an API key ([Where is my API key?](https://docs.elmah.io/where-is-my-api-key/)) with permission ([How to configure API key permissions](https://docs.elmah.io/how-to-configure-api-key-permissions/)) to upload source maps. Replace `LOG_ID` with the ID ([Where is my log ID?](https://docs.elmah.io/where-is-my-log-id/)) of the log the source map belongs to. **Path** must contain the relative path to the minified JavaScript. **Source Map File** and **Minified JavaScript File** must contain a path to the generated source map and minified JavaScript file.
### Pipelines
Go to your Azure DevOps Pipeline configuration and add the *elmah.io Upload Source Map* task. Fill in the fields as shown here:
![Add the task](images/pipeline_task.png)
When clicking the *Add* button, YAML code will be added to your configuration looking similar to this:
```yaml
- task: ElmahIoUploadSourceMap@4
inputs:
apiKey: 'API_KEY'
logId: 'LOG_ID'
path: '/bundles/sharedbundle.min.js'
sourceMap: '$(System.DefaultWorkingDirectory)/myproject/drop/bundles/sharedbundle.map'
minifiedJavaScript: '$(System.DefaultWorkingDirectory)/myproject/drop/bundles/sharedbundle.min.js'
```### Releases
Go to your Azure DevOps Release configuration and add the *elmah.io Upload Source Map* task. Fill in all fields as shown here:
![Add the task](images/release_pipeline_task.png)