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:
parent
80c6ecf053
commit
476be4dfa5
@ -1745,3 +1745,17 @@ def dsl(parser, xml_parent, data):
|
|||||||
|
|
||||||
XML.SubElement(dsl, 'additionalClasspath').text = data.get(
|
XML.SubElement(dsl, 'additionalClasspath').text = data.get(
|
||||||
'additional-classpath')
|
'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')
|
||||||
|
@ -54,6 +54,7 @@ jenkins_jobs.builders =
|
|||||||
critical-block-start=jenkins_jobs.modules.builders:critical_block_start
|
critical-block-start=jenkins_jobs.modules.builders:critical_block_start
|
||||||
critical-block-end=jenkins_jobs.modules.builders:critical_block_end
|
critical-block-end=jenkins_jobs.modules.builders:critical_block_end
|
||||||
dsl=jenkins_jobs.modules.builders:dsl
|
dsl=jenkins_jobs.modules.builders:dsl
|
||||||
|
github-notifier=jenkins_jobs.modules.builders:github_notifier
|
||||||
gradle=jenkins_jobs.modules.builders:gradle
|
gradle=jenkins_jobs.modules.builders:gradle
|
||||||
grails=jenkins_jobs.modules.builders:grails
|
grails=jenkins_jobs.modules.builders:grails
|
||||||
groovy=jenkins_jobs.modules.builders:groovy
|
groovy=jenkins_jobs.modules.builders:groovy
|
||||||
|
6
tests/builders/fixtures/github-notifier.xml
Normal file
6
tests/builders/fixtures/github-notifier.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project>
|
||||||
|
<builders>
|
||||||
|
<com.cloudbees.jenkins.GitHubSetCommitStatusBuilder/>
|
||||||
|
</builders>
|
||||||
|
</project>
|
2
tests/builders/fixtures/github-notifier.yaml
Normal file
2
tests/builders/fixtures/github-notifier.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
builders:
|
||||||
|
- github-notifier
|
Loading…
Reference in New Issue
Block a user