nilxam / obs_factory

Plugin for Open Build Service to manage openSUSE Factory related stuff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ObsFactory

Mountable engine for Open Build Service to add some urls that will allow a better overview of some openSUSE Factory specific artifacts like staging projects.

For example, if the engine is mounted in /factory it will provide /factory/staging_projects.json which will output something like

{ projects: [
    { name: staging:A,
       description: blah,
       untracked_requests: [ 3443, 3444],
       obsolete_requests: [ 33221],
       unreviewed_requests: [
           { id => 44434, missing_reviews => [repo_checker, legal] },
           {id => 44431, missing_reviews => [repo_checker] } ],
       buildstatus: { working => 3, broken => 1 }
       openqa: [ {job => 33, result => 'ok'} ]
       subprojects: [
           name: staging:A:DVD,
           description: blah DVD,
           untracked_requests: [ ],
           invalid_requests: [  ],
           unreviewed_requests: [ ],
           buildstatus: { working => 3, broken => 1 }
           openqa: [ ]
    ]
  } ]
}

And /factory/staging_projects.html which will provide the same information in a convenient dashboard.

Installing

Add this to OBS Gemfile

gem 'obs_factory', path: '/local/path/to/obs_factory'

And this to the config/routes.rb file of OBS inside the routes.draw block

mount ObsFactory::Engine => "/factory"

About

Plugin for Open Build Service to manage openSUSE Factory related stuff

License:MIT License


Languages

Language:Ruby 72.0%Language:HTML 21.4%Language:CSS 6.0%Language:JavaScript 0.7%