def build_job(name=None, parameters=None):
 if (not name):
  raise SaltInvocationError('Required parameter `name` is missing.')
 server = _connect()
 if (not job_exists(name)):
  raise SaltInvocationError('Job `{0}` does not exist.'.format(name))
 try:
  server.build_job(name, parameters)
 except jenkins.JenkinsException as err:
  raise SaltInvocationError('Something went wrong {0}.'.format(err))
 return True

def build_job ( name = None , parameters = None ) : if ( not name ) : raise SaltInvocationError ( 'Required parameter `name` is missing.' ) server = _connect ( ) if ( not job_exists ( name ) ) : raise SaltInvocationError ( 'Job `{0}` does not exist.' . format ( name ) ) try : server . build_job ( name , parameters ) except jenkins . JenkinsException as err : raise SaltInvocationError ( 'Something went wrong {0}.' . format ( err ) ) return True
initiate a build for the provided job .