Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tbouron/strider-artifact-repository
Artifact repository for StriderCI
https://github.com/tbouron/strider-artifact-repository
Last synced: 3 months ago
JSON representation
Artifact repository for StriderCI
- Host: GitHub
- URL: https://github.com/tbouron/strider-artifact-repository
- Owner: tbouron
- License: gpl-2.0
- Created: 2014-11-29T09:29:31.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-02T15:57:37.000Z (almost 8 years ago)
- Last Synced: 2024-10-05T18:11:31.273Z (3 months ago)
- Language: JavaScript
- Size: 43.9 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strider-artifact-repository
![Build Status](http://tbouron-ci.herokuapp.com/tbouron/strider-artifact-repository/badge?branch=develop)
Save defined artifacts into MongoDB for each job and project on the deploy phase. Also expose an API to retrieve the artifacts history and download them.
**IMPORTANT: This plugin curently support NodeJs projects only.**
## Setup
On project configuration page, adds the plugin *artifact-repository*, then:
- enter the path of the file to save ***from the root of the project*** (e.g. to save the package.json of a node project, just write *package.json*)
- enter the maximum number of file to keep for this project. If you enter 0, there will be no limit so be careful to the overall size of your MongoDB if you choose this value.## API
This plugin creates 3 endpoinds, for instance:
- **/:org/:repo/api/artifact-repository/history?branch=:branchName** => returns all artifact info history for a particular project, as a JSON.
- **/:org/:repo/api/artifact-repository/latest?branch=:branchName** => returns the latest artifact info for a particular project, as a JSON.
- **/:org/:repo/api/artifact-repository/dl/:artifactid?branch=:branchName** => downloads a particular artifact.Endpoints are accessible only for logged users who have access to the specified project. If the user is not already logged in, you can pass the basic authentication header while performing the request.