summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/modules/reporters.py
Commit message (Collapse)AuthorAgeFilesLines
* Update Jenkins wiki -> plugins URLsThanh Ha2020-01-221-2/+1
| | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all plugins that have a relevant plugins.jenkins.io URL documentation link. Change-Id: Iba7df7eada7b8ca0bb9aad93f5499ac6365a9293 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Auto-generated output from python-blackThanh Ha2019-09-091-23/+21
| | | | | | | | | Please review the following patch containing the code changes in the repo. This patch is a transition patch and is the auto-generated output of the python-black tool. Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* email: Utilize convert_mapping_to_xmltanhengyeow2018-09-201-4/+6
| | | | | Change-Id: I05e7bad41e3f7329af0da313cffdd0ee297a53ba Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
* reporters: Import entire helpers library for usagetanhengyeow2018-09-101-4/+3
| | | | | Change-Id: I4f7a5da69d36773a0ac9888655f943db78726240 Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
* Reporters: fix 'perModuleEmail' supportAndrea Scarpino2018-03-221-1/+1
| | | | | | | Unfortunately, during the review process of commit 454259ed3 I made a typo and notify-for-each-module argument is not parsed correctly. Change-Id: Ia053dbd722800f536c347d58f9b9822e2e67868a
* Reporters: fix typo and support 'perModuleEmail'Andrea Scarpino2017-01-191-3/+5
| | | | | | | | hudson.maven.reporters.Mailer is a typo as it never existed. Support "Send email for each failed module" via perModuleEmail attribute. Change-Id: I6ef493a097a10326b67295775a9522c95c2fee2f
* Disentangle YamlParser and ModuleRegistry classesWayne Warren2016-08-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | Create the ModuleRegistry anywhere other than inside the YamlParser class. This will make it slightly easier to factor a XmlGenerator out of YamlParser, but I also want to work toward eliminating the circular references between YamlParser and ModuleRegistry which have been making it difficult to understand overall program flow. This commit also replaces all YamlParser instances being passed to Jenkins job config generating functions with a ModuleRegistry. Mostly it seems like the parser was only needed to call the ModuleRegistry's 'dispatch' method which to be honest I don't fully understand. This is where the circular references mentioned in previously come in...it seems like the "dispatch" function needs access to the (mostly) raw data contained by the parser, so it took that as a parameter. The need for the YamlParser's job data can be satisfied by assigning it to a property on the ModuleRegistry object before Yaml expansion or XML generation begins; by doing this, we allow the ModuleRegistry to avoid referencing the parser. Change-Id: I4b571299b81e708540392ad963163fe092acf1d9
* Fix typo for reporters docKien Ha2016-08-111-1/+1
| | | | | Change-Id: Icd4a519e6fa87185f8cb21e916413a9b6f698257 Signed-off-by: Kien Ha <kienha9922@gmail.com>
* Update FindBugs docs to 4 space indent syntaxKien Ha2016-07-291-10/+9
| | | | | Change-Id: Id31c8214c1c2610f24d51a7089604604a21dc42b Signed-off-by: Kien Ha <kienha9922@gmail.com>
* Remove the colon after default in docstringDong Ma2016-06-171-4/+4
| | | | | | | This commit change the '(default: ...)' docstrings to '(default ...)', also change 'Default' to 'default', to make docstring consistent. Change-Id: Ib7957000013b0664f40eb74efad6f1c7359675fa
* Reorder imports to match hacking guidelinesDarragh Bailey2015-12-231-2/+2
| | | | | | | Ensure that the imports follow the standard OpenStack hacking guidelines. Change-Id: Iaa4326aef118ddfd807dd006934f1d9ca80a1cfa
* Add FindBugs support to PublishersThanh Ha2015-03-191-12/+2
| | | | | | | | | | | | | | FindBugs can also be configured as a publisher in non-Maven job types. This work is a follow up to previous work from: https://review.openstack.org/#/c/153911/ - Adds support for configuring findbugs from a publisher context - Move FindBugs specific options into a findbugs_settings() helper function Change-Id: I1bead8b8ade4288243180c19435da9bb51b2a0df Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
* Add FindBugs plugin supportThanh Ha2015-03-111-0/+78
| | | | | | | | | | | - Add reporters test module - Move build_trends_publisher to helpers module now that there is multiple modules using the function https://wiki.jenkins-ci.org/display/JENKINS/FindBugs+Plugin Change-Id: Ic537279ff875589b41823f6f5324feb61ed7054e Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
* raise JenkinsJobsException instead of ExceptionAntoine Musso2013-12-021-1/+3
| | | | | | | | Normalize all exceptions to be JenkinsJobsException from the jenkins_jobs.errors module. This patch replace all occurences of the build-in Exception. Change-Id: I923ec35467dd93211d8cd1e6c69c0321d9391ec8
* Make reuse of builders/publishers inside other components easier.Arnaud Fabre2013-04-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some Jenkins plugins depend on other plugins, and their configuration section is a mix of both plugins. For Jenkins Job Builder, that means reusing one component directly from another one. Driving the generation of XML markup is the job of Base._dispatch. Unfortunately, components do not have access to their module object, and even if their could, _dispatch would still be a non-public method. Refactor Base._dispatch into ModuleRegistry.dispatch, which can be used from any place where the parser is available. Base and ModuleRegistry are extended so that the registry can discover which entry point must be used for each module, if appropriate. ModuleRegistry.dispatch signature can be simplified by dropping component_list_type parameter. Change-Id: Ie9d090817d0c2d464745b5634a22d3cea6a47ab1 Reviewed-on: https://review.openstack.org/26051 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
* Add email publisher/reporter.James E. Blair2012-09-201-0/+85
Also, add reporters module. Change-Id: I9cd0abca3d90f1af5f275698ecc9ccb7d9086494 Reviewed-on: https://review.openstack.org/13303 Reviewed-by: Monty Taylor <mordred@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins