Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

absolunet/node-bamboo-connector

Repository files navigation

@absolunet/bamboo-connector

npm npm dependencies npms Travis CI Code style ESLint

Bitbucket API wrapper via OAuth2

Authenticate to Atlassian Bamboo API via OAuth2 or basic with Axios

Install

$ npm install @absolunet/bamboo-connector

Usage

const BambooConnector = require('@absolunet/bamboo-connector');


const basicBamboo = new BambooConnector({
	auth: {
		type: 'basic',
		username: 'lkjhgfdsa',
		secret: 'mnbvcxz'
	},
	url: 'https://bamboo.domain.com:8085'
}); // axios instance

const oauthBamboo = new BambooConnector({
	auth: {
		type: 'oauth2',
		key: 'zyxwvutsrqponmlkji',
		secret: 'abcdefghijklmnopqrstuvwxyz012345'
	},
	url: 'https://bamboo.domain.com:8085'
}); // axios instance

Then, you can make direct API calls

basicBamboo.get(`/rest/api/latest/result/${PROJECT_KEY}-${PLAN_KEY}`)
	.then((results) => {
		// do wathever you want
	});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published