def gitlab_merge_request(registry, xml_parent, data):
 ghprb = XML.SubElement(xml_parent, 'org.jenkinsci.plugins.gitlab.GitlabBuildTrigger')
 if (not data.get('cron', None)):
  raise jenkins_jobs.errors.JenkinsJobsException('gitlab-merge-request is missing "cron"')
 if (not data.get('project-path', None)):
  raise jenkins_jobs.errors.JenkinsJobsException('gitlab-merge-request is missing "project-path"')
 XML.SubElement(ghprb, 'spec').text = data.get('cron')
 XML.SubElement(ghprb, '__cron').text = data.get('cron')
 XML.SubElement(ghprb, '__projectPath').text = data.get('project-path')

def gitlab_merge_request ( registry , xml_parent , data ) : ghprb = XML . SubElement ( xml_parent , 'org.jenkinsci.plugins.gitlab.GitlabBuildTrigger' ) if ( not data . get ( 'cron' , None ) ) : raise jenkins_jobs . errors . JenkinsJobsException ( 'gitlab-merge-request is missing "cron"' ) if ( not data . get ( 'project-path' , None ) ) : raise jenkins_jobs . errors . JenkinsJobsException ( 'gitlab-merge-request is missing "project-path"' ) XML . SubElement ( ghprb , 'spec' ) . text = data . get ( 'cron' ) XML . SubElement ( ghprb , '__cron' ) . text = data . get ( 'cron' ) XML . SubElement ( ghprb , '__projectPath' ) . text = data . get ( 'project-path' )
yaml: gitlab-merge-request build merge requests in gitlab and report results .