Add support for github commit status pending

Introduced in the github plugin at version 1.10:
'Build step to set Github commit status as "pending"'

Change-Id: I6c586ae44563608f095fff1eb65395d0338d7cb4
This commit is contained in:
Adrian Moisey 2015-02-04 09:55:33 +02:00
parent 80c6ecf053
commit 476be4dfa5
4 changed files with 23 additions and 0 deletions

View File

@ -1745,3 +1745,17 @@ def dsl(parser, xml_parent, data):
XML.SubElement(dsl, 'additionalClasspath').text = data.get(
'additional-classpath')
def github_notifier(parser, xml_parent, data):
"""yaml: github-notifier
Set pending build status on Github commit.
Requires the Jenkins `Github Plugin.
<https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin>`_
Example:
.. literalinclude:: /../../tests/builders/fixtures/github-notifier.yaml
"""
XML.SubElement(xml_parent,
'com.cloudbees.jenkins.GitHubSetCommitStatusBuilder')

View File

@ -54,6 +54,7 @@ jenkins_jobs.builders =
critical-block-start=jenkins_jobs.modules.builders:critical_block_start
critical-block-end=jenkins_jobs.modules.builders:critical_block_end
dsl=jenkins_jobs.modules.builders:dsl
github-notifier=jenkins_jobs.modules.builders:github_notifier
gradle=jenkins_jobs.modules.builders:gradle
grails=jenkins_jobs.modules.builders:grails
groovy=jenkins_jobs.modules.builders:groovy

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<com.cloudbees.jenkins.GitHubSetCommitStatusBuilder/>
</builders>
</project>

View File

@ -0,0 +1,2 @@
builders:
- github-notifier