bamboo-api icon indicating copy to clipboard operation
bamboo-api copied to clipboard

Can this be used with Bamboo OnDemand/Cloud

Open thenikso opened this issue 9 years ago • 3 comments

Hello!

Can this library be used with Bamboo OnDemand? If so which URL should be used?

Thanks!

thenikso avatar Sep 11 '15 13:09 thenikso

Hi @thenikso,

This library is a wrapper for Bamboo RESP API and so if to believe this thread: https://answers.atlassian.com/questions/14211112/using-the-rest-api-from-bamboo-on-demand it should work with following URL: https://[MYCOMPANY].atlassian.net/builds

But I never tried with Bamboo OnDemand

pvoznenko avatar Sep 11 '15 13:09 pvoznenko

I've got a little script I've written that is getting this error:

$ node app.js
error
[Error: Unreachable endpoint! Response status code: 401]
null

The script is:

#!/usr/bin/env node

var Bamboo = require('bamboo-api');
var bamboo = new Bamboo("https://mycompany.atlassian.net/builds", 
        'my bamboo username',
        'my bamboo password');
bamboo.getLatestBuildStatus("MY_PLAN_KEY", function(error, result) {
    if(error) {
        console.log('error');
        console.log(error);
    }
    console.log(result);
});

Is there any way to further debug what is going on?

ericfrancis avatar May 19 '16 22:05 ericfrancis

Ignore my last comment. My username is not my email address, my mistake.

And yes, confirmed that this will work for Bamboo cloud.

ericfrancis avatar May 19 '16 22:05 ericfrancis