Name: drone-node
Owner: drone.io
Description: Node client for the Drone API
Created: 2015-11-03 01:18:21.0
Updated: 2018-05-11 08:43:40.0
Pushed: 2018-02-16 12:29:32.0
Homepage: null
Size: 16
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Node client for the Drone API
An API client is included in this package
t Drone = require('drone-node');
t client = new Drone.Client({ url: 'https://your.drone.server.com', token: 'SoMeToKeN' });
nt.getRepos().then((repos) => {
lists all the repos available to the authenticated user
Many methods are available, until they're documented see lib/index.js for details.
This package provides utilities for creating plugins. Plugins are command-line programs invoked during the build process. Build information and plugin configuration is passed to the plugin as a command-line argument in JSON format:
run super_plugin.js -- '{ "build": {"number": 1, "status": "success"} }'
Example usage:
t Drone = require('drone-node');
t plugin = new Drone.Plugin();
in.parse().then((params) => {
gets build and repository information for
the current running build
nst build = params.build;
nst repo = params.repo;
gets plugin-specific parameters defined in
the .drone.yml file
nst vargs = params.vargs;