plouc / mozaik-ext-jenkins

Mozaïk jenkins widgets
MIT License
10 stars 26 forks source link

jenkins.view not working #7

Closed benediktvaldez closed 8 years ago

benediktvaldez commented 8 years ago

module.exports.jobBuild in ./src/client.js line 65 is undefined

When I tried moving jobBuild outside of the returned object it worked.

Not sure how you wanna address this @plouc, related issue is that jobs returns literally all jobs, not only for the requested view (this might be jenkins' fault though, not sure)

plouc commented 8 years ago

@benediktvaldez, using module.exports to address jobBuild was a bad idea, I'll change that. For jenkins returning all jobs (or Mozaïk fetching all :)), I'll have to check.

benediktvaldez commented 8 years ago

@plouc Thanks :)

Another thing that would be cool, if I could simply ask for a pipeline, and list all of its stages and their status

plouc commented 8 years ago

Yes, I wanted to craft a widget for it, but unfortunately, last time I checked (don't remember when), I saw that the plugin didn't provided an API.

benediktvaldez commented 8 years ago

Ah, I see. At least I'm seeing it now, running Jenkins 1.644, I get a pipelines array with my response :+1:

plouc commented 8 years ago

@benediktvaldez, just checked for the view widget and jenkins only returns the view's jobs, so Mozaïk just display those jobs (tested with jenkins 1.618).

plouc commented 8 years ago

@benediktvaldez, any update on this ?

benediktvaldez commented 8 years ago

On closer inspection I think the problem is that my view is a display of pipelines rather than a list of jobs. When I try to use a view with the regular list of jobs everything works fine.

So, problem is on my side :+1: I'll look into extending this extension with support for pipelines.

Thanks!