diff options
author | Kien Ha <kienha9922@gmail.com> | 2016-06-29 15:05:54 -0400 |
---|---|---|
committer | Kien Ha <kienha9922@gmail.com> | 2016-07-18 19:29:15 -0400 |
commit | 854137baf6c61cee40687464a673f32b4620df4d (patch) | |
tree | 2c7e23cc8ddc21f9a3600bb238ca822e86d1cde8 /jenkins_jobs | |
parent | d6add35e72c6c2beb44b1be57f589d79f98f5551 (diff) | |
download | python-jenkins-job-builder-854137baf6c61cee40687464a673f32b4620df4d.tar.gz python-jenkins-job-builder-854137baf6c61cee40687464a673f32b4620df4d.tar.xz python-jenkins-job-builder-854137baf6c61cee40687464a673f32b4620df4d.zip |
Update GitHub pull request builder plugin
- Update docs of options to have default
- Fix merge-comment option to be type str
- Update convert_mapping_to_xml to use fail_required=True argument
Change-Id: I018219d80e0c54c951ef79fb4ca1bb53f0b63497
Signed-off-by: Kien Ha <kienha9922@gmail.com>
Diffstat (limited to 'jenkins_jobs')
-rw-r--r-- | jenkins_jobs/modules/publishers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py index 1a583bfa..337497c6 100644 --- a/jenkins_jobs/modules/publishers.py +++ b/jenkins_jobs/modules/publishers.py @@ -6259,7 +6259,7 @@ def github_pull_request_merge(parser, xml_parent, data): :arg bool disallow-own-code: if `true` will allow merging your own pull requests, in opposite to needing someone else to trigger the merge. (default false) - :arg bool merge-comment: Comment to set on the merge commit (optional) + :arg str merge-comment: Comment to set on the merge commit (default '') :arg bool fail-on-non-merge: fail the job if the merge was unsuccessful (default false) :arg bool delete-on-merge: Delete the branch of the pull request on @@ -6284,12 +6284,12 @@ def github_pull_request_merge(parser, xml_parent, data): # option, xml name, default value ("only-admins-merge", 'onlyAdminsMerge', 'false'), ("disallow-own-code", 'disallowOwnCode', 'false'), - ("merge-comment", 'mergeComment', None), + ("merge-comment", 'mergeComment', ''), ("fail-on-non-merge", 'failOnNonMerge', 'false'), ("delete-on-merge", 'deleteOnMerge', 'false'), ] - helpers.convert_mapping_to_xml(osb, data, mapping) + helpers.convert_mapping_to_xml(osb, data, mapping, fail_required=True) class Publishers(jenkins_jobs.modules.base.Base): |