Merge "Add support for the "Gitlab Logo Plugin""

This commit is contained in:
Zuul 2018-10-17 22:20:47 +00:00 committed by Gerrit Code Review
commit 4652775214
3 changed files with 33 additions and 0 deletions

View File

@ -206,6 +206,28 @@ def gitlab(registry, xml_parent, data):
helpers.convert_mapping_to_xml(gitlab, data, mapping, fail_required=True)
def gitlab_logo(registry, xml_parent, data):
"""yaml: gitlab-logo
Configures the GitLab-Logo Plugin.
Requires the Jenkins :jenkins-wiki:`GitLab Logo Plugin
<GitLab+Logo+Plugin>`.
:arg str repository-name: the GitLab repository name (required)
Example:
.. literalinclude:: /../../tests/properties/fixtures/gitlab-logo.yaml
:language: yaml
"""
logo = XML.SubElement(xml_parent,
'org.jenkinsci.plugins.gitlablogo.'
'GitlabLogoProperty')
mapping = [
('repository-name', 'repositoryName', None)
]
helpers.convert_mapping_to_xml(logo, data, mapping, fail_required=True)
def disk_usage(registry, xml_parent, data):
"""yaml: disk-usage
Enables the Disk Usage Plugin.

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<properties>
<org.jenkinsci.plugins.gitlablogo.GitlabLogoProperty>
<repositoryName>gitlab-repository-name</repositoryName>
</org.jenkinsci.plugins.gitlablogo.GitlabLogoProperty>
</properties>
</project>

View File

@ -0,0 +1,3 @@
properties:
- gitlab-logo:
repository-name: gitlab-repository-name