Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

node-async-jenkins-api

1.2.2 • Public • Published

node-async-jenkins-api

Call Jenkins API with JavaScript

Install

npm install node-async-jenkins-api

Usage

Setup

const Jenkins = require('node-async-jenkins-api');
const jenkins = new Jenkins({
  url: 'jenkinsUrl',
  username: 'jenkinsUsername',
  password: 'jenkinsPassword/jenkinsToken'
});

build

const result = await jenkins.build(jobName)

buildWithParams

const result = await jenkins.buildWithParams(jobName, params)

getQueueItemInfo

const result = await jenkins.getQueueItemInfo(queueId)

cancelQueueItem

const result = await jenkins.cancelQueueItem(queueId)

getQueueInfo

const result = await jenkins.getQueueInfo()

getLastBuildInfo

const result = await jenkins.getLastBuildInfo(jobName)

getJobInfo

const result = await jenkins.getJobInfo(jobName)

stopBuild

const result = await jenkins.stopBuild(jobName, buildNumber)

buildInfo

const result = await jenkins.buildInfo(jobName, buildNumber)

allJobsInView

const result = await jenkins.allJobsInView(viewName)

Install

npm i node-async-jenkins-api

DownloadsWeekly Downloads

4

Version

1.2.2

License

ISC

Unpacked Size

10.9 kB

Total Files

6

Last publish

Collaborators

  • avatar