Skip to content

fraserxu/buildkite-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buildkite-node

A buildkite nodejs sdk

Install

$ npm i buildkite-node --save

Usage

Please check buidkite api documnetaion for more information

var Buildkite = require('buildkite-node')

// var buildkite = new Buildkite('api-token')
var buildkite = new Buildkite({
  accessToken: 'api-token',
  apiUrl: 'https://api.buildkite.com/v2/' // default
})

buildkite.ping().then(function (res) {
  console.log('ping', res.body)
}).catch(function (err) {
  console.log('err', err)
})

APIs

To create a new instance var buildkite = new Buildkite(opts)

Overview

ping()

user()

Organizations

listOrgs()

getOrg(org)

Pipelines

listPipelines(org)

getPipeline(org, pipeline)

createPipeline(org, opts)

deletePipelline(org, pipeline)

Builds

listBuilds()

listOrgBuilds(org)

listPipelineBuilds(org, pipeline)

getBuild(org, pipeline, build)

createBuild()

cancelBuild()

rebuildBuild()

Jobs

unblockJob(org, pipeline, build, job)

getJobLog(org, pipeline, build, job)

getJobEnv(org, pipeline, build, job)

Agents

listAgents(org)

getAgent(org, agent)

stopAgent(org, agent)

Artifacts

listBuildArtifacts(org, pipeline, build)

getJobArtifacts(org, pipeline, build, job)

getArtifact(org, pipeline, build, artifact)

downloadArtifact(org, pipeline, build, artifact)

Emojis

listEmojis(org)

License

MIT

About

A buildkite nodejs sdk(WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published