Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/s/t/statusboard-HEAD/statusboard/plugins/jenkins/models.py   statusboard(Download)
from statusboard.plugins import Plugin
from statusboard.plugins.jenkins import conf
from statusboard.plugins.jenkins.utils import get_servers
from statusboard.utils import json
 
            'server_url': opts.get('server_url', ''),
            'job': opts.get('job', ''),
            'servers': get_servers(),
            'jobs': [],
            'css_class': '',
    def tick_1(self, log):
        """Every minute, grab the jobs from all configured servers."""
        for server_url in get_servers():
            api_url = server_url+'api/json/?tree=jobs[name,url,healthReport[description,score],lastBuild[building,timestamp],lastCompletedBuild[result],lastSuccessfulBuild[duration]]'
            try: