Public Member Functions
travis_jenkins.Jenkins2 Class Reference

List of all members.

Public Member Functions

def build_job
def get_build_info

Detailed Description

Definition at line 30 of file travis_jenkins.py.


Member Function Documentation

def travis_jenkins.Jenkins2.build_job (   self,
  name,
  parameters = None,
  token = None 
)

Definition at line 32 of file travis_jenkins.py.

def travis_jenkins.Jenkins2.get_build_info (   self,
  name,
  number 
)
Get build information dictionary.

:param name: Job name, ``str``
:param name: Build number, ``int``
:returns: dictionary of build information, ``dict``

Example::

    >>> next_build_number = j.get_job_info('build_name')['next_build_number']
    >>> output = j.build_job('build_'+kwargs['vcs_server_type'], params)
    >>> sleep(10)
    >>> build_info = j.get_build_info('build_name', next_build_number)
    >>> print(build_info)
    {u'building': False, u'changeSet': {u'items': [{u'date': u'2011-12-19T18:01:52.540557Z', u'msg': u'test', u'revision': 66, u'user': u'unknown', u'paths': [{u'editType': u'edit', u'file': u'/branches/demo/index.html'}]}], u'kind': u'svn', u'revisions': [{u'module': u'http://eaas-svn01.i3.level3.com/eaas', u'revision': 66}]}, u'builtOn': u'', u'description': None, u'artifacts': [{u'relativePath': u'dist/eaas-87-2011-12-19_18-01-57.war', u'displayPath': u'eaas-87-2011-12-19_18-01-57.war', u'fileName': u'eaas-87-2011-12-19_18-01-57.war'}, {u'relativePath': u'dist/eaas-87-2011-12-19_18-01-57.war.zip', u'displayPath': u'eaas-87-2011-12-19_18-01-57.war.zip', u'fileName': u'eaas-87-2011-12-19_18-01-57.war.zip'}], u'timestamp': 1324317717000, u'number': 87, u'actions': [{u'parameters': [{u'name': u'SERVICE_NAME', u'value': u'eaas'}, {u'name': u'PROJECT_NAME', u'value': u'demo'}]}, {u'causes': [{u'userName': u'anonymous', u'shortDescription': u'Started by user anonymous'}]}, {}, {}, {}], u'id': u'2011-12-19_18-01-57', u'keepLog': False, u'url': u'http://eaas-jenkins01.i3.level3.com:9080/job/build_war/87/', u'culprits': [{u'absoluteUrl': u'http://eaas-jenkins01.i3.level3.com:9080/user/unknown', u'fullName': u'unknown'}], u'result': u'SUCCESS', u'duration': 8826, u'fullDisplayName': u'build_war #87'}

Definition at line 40 of file travis_jenkins.py.


The documentation for this class was generated from the following file:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Fri Aug 28 2015 11:53:39