summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Re-order some XML attributes, to preserve orderingMattia Rizzolo2020-02-023-7/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Python 3.8 changed things, so now the order of the attributes is not alphabetic anymore but reflect the order they where added. See this CPython commit for more details: https://github.com/python/cpython/commit/63673916464bace8e2147357395fdf3497967ecb This lets the testsuite pass with both CPython 3.8 as well as previous versions. Change-Id: I315abda0465d882d9673c9a7faac0990e38b6840 Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
* | Update Jenkins wiki -> plugins URLsThanh Ha2020-01-226-206/+292
| | | | | | | | | | | | | | | | | | | | 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>
* | Update Jenkins wiki -> plugins URLs parametersThanh Ha2020-01-221-23/+37
| | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all parameters that have a relevant plugins.jenkins.io URL documentation link. Change-Id: I3f944d268031c0217544ee94bb5361276ca9158d Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Update Jenkins wiki -> plugins URLsThanh Ha2020-01-2210-50/+56
| | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates links that have a relevant plugins.jenkins.io URL documentation link. Change-Id: I7ce6978d48d09deea976e9b5f800632e92e7bd11 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Fix links causing redirectsThanh Ha2020-01-224-11/+11
| | | | | | | | | | | | | | | | Some links have been permanently redirected to a new URL so adjust the links to go directly to the new URL. Change-Id: I900091f8bdc39aa5fd06eae04a9b18ef23add8f2 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Update Jenkins wiki -> plugins URLs buildersThanh Ha2020-01-223-121/+183
| | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all builders that have a relevant plugins.jenkins.io URL documentation link. Change-Id: Ib07ebb4dceb23325e8d401dd9c0a8dfb9f49cd80 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Merge "Fix authorization property issue"Zuul2020-01-223-1/+36
|\ \
| * | Fix authorization property issueArtem Nikitin2020-01-173-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change fixes a XML generating error (KeyError: '_use_folder_perms') for project, which isn't contained in a folder and has got authorization properties. Task: 38110 Story: 2007087 Change-Id: I2e0ec6e524d07a935333b35e10eb4204af9256f7
* | | Update Jenkins wiki -> plugins URLsThanh Ha2020-01-222-180/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all publishers that have a relevant plugins.jenkins.io URL documentation link. Change-Id: I94448d04f2b28fbf3befde2e49c76d196e352d7e Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | | Merge "Add support for opsgenie notification plugin"Zuul2020-01-225-0/+89
|\ \ \ | |/ / |/| |
| * | Add support for opsgenie notification pluginJohn Oram2020-01-075-0/+89
| | | | | | | | | | | | Change-Id: Id84b3d9282568cf47d5feb930fd618afe969b45f
* | | Experimental support for filterChecks traitLuca Milanesio2020-01-083-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | The gerrit-code-review-plugin v0.4.0 introduces the integration with Gerrit Checks plugin. Introduce the option to query for pending checks. Change-Id: Idb3f290121aa6fbcdc25a0821c9bdc3dd03e21af
* | | Merge "Fix gerrit-code-review plugin name"Zuul2020-01-073-3/+6
|\ \ \ | |/ / |/| |
| * | Fix gerrit-code-review plugin nameLuca Milanesio2020-01-033-3/+6
| |/ | | | | | | | | | | | | | | The GerritSCMSource type for the multibranch pipeline does not belong to the 'gerrit' plugin but rather to the 'gerrit-code-review' plugin. Change-Id: I5edd81a3506847c3e5910ad66d4498a2b8c899e9
* / Enable docs-linkcheckThanh Ha2020-01-0613-39/+51
|/ | | | | | | | | This toxenv will allow us to flag URLs that no longer work. We also switch from using old style setup.py build_sphinx to the newer sphinx-build command. Change-Id: I62f42918814fb6eea4876e0d22c6bccddf86a826 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Import jobs from project-configAndreas Jaeger2019-12-221-0/+7
| | | | | | | Import those jobs that should be in-repo. Needed-By: https://review.opendev.org/700356 Change-Id: I57b83d4a95810fe3cc09e2c4a909fc95e7aa2dee
* Update homepageAndreas Jaeger2019-12-223-3/+3
| | | | | | | | Since change I5cbf7b5cfea349a0bd72d2abee40710175cf5b2f, this repo publishes to https://jenkins-job-builder.readthedocs.io/en/latest/ , let's update the links for this. Change-Id: I08f8dd992ee1b6360f3d226cb668cda7f4242b8a
* Merge "Fix the yaml load warning."3.2.0Zuul2019-12-165-10/+10
|\
| * Fix the yaml load warning.Daniel Bengtsson2019-12-105-10/+10
| | | | | | | | | | | | | | | | | | | | | | In the new version of PyYAML the API changed to be more explicit. Now the default value for the Loader is None, see: https://github.com/yaml/pyyaml/blob/5.1/lib3/yaml/__init__.py#L103 The load is unsafe. It's better to use safe_load function. Change-Id: Ia1cd16f2ff970ca220a266c99b6554dd4254ebd9
* | Add support for noSquash (no-squash) in jms-messaging triggerWaldemar Znoinski2019-12-134-0/+10
|/ | | | | | | | | | | It's sometimes required to trigger a job build on every CI message. To achieve that the XML's noSquash (jjb: no-squash) has to be set to True. see triggers section at: https://wiki.jenkins.io/display/JENKINS/JMS+Messaging+Plugin Change-Id: I389e59cca4f649379614f7f6247bf76cf4a0ba95
* Switch to debug log level for not deleting jobThanh Ha2019-11-221-1/+1
| | | | | | | | The spam caused by jjb not doing anything with a job is not generally interesting so switch it to a DEBUG level logger. Change-Id: I0c5277612c8db3a11a1e44d4855b4a51226a8f2c Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Add alias to multijob builderArtem Nikitin2019-11-133-0/+41
| | | | | | | It's helpful to have possibility to set `jobAlias` in case the same job is used multiple times with different configurations. Change-Id: Ic092c6b2f5d893e75ebce4aaebc7eaf88a8978a6
* Add Private and WIP change support for gerritJoseph Kostreva2019-11-065-0/+22
| | | | | | | Updated gerrit trigger support to include the new exclude private and exclude wip changes. Change-Id: I75d8113941e4e455ec34fab23d347816c2ef699b
* Fix double inderection of name templatesJames Harris2019-11-053-3/+62
| | | | | | | | | | Ensure that we can resolve any lazily loaded templates that might be dictionary keys in yaml. For more informmation please see the added test case in tests/yamlparser/fixtures/jinja-string04.yaml. Change-Id: I67fbca422f2165729af15e4d039278ad66f6240b Story: 2006431 Task: 36338
* Allow use of jinja templates in defaultsJames Harris2019-11-053-7/+59
| | | | | | | | | | | | Jinja templates are not deep-copyable so they cannot be used in "defautls" sections or to pick defualts for job groups or projects. This works around the issue by waiting until we render the template to construct the template itself. Story: 2006431 Task: 36337 Change-Id: Ief31fdaac06bb14d0aaba71c8c0e658a7f861671
* Fix repository location in README.rstThomas Bechtold2019-11-051-3/+3
| | | | | | It's nowadays opendev.org so use that. Change-Id: I91382e8d18deec6c91e84d9232f013792631e66a
* Merge "Support sectioned views"Zuul2019-11-047-15/+192
|\
| * Support sectioned viewsJan Zerebecki2019-10-287-15/+192
| | | | | | | | Change-Id: Iaf352e8cc62644fb05afaae21630b9bec2cd30c0
* | Merge "Support nested views"Zuul2019-11-047-4/+168
|\|
| * Support nested viewsJan Zerebecki2019-10-247-4/+168
| | | | | | | | Change-Id: I13532a16efc6e970ab5a7c021ec4d77be98d3de8
* | registry: cache component loadingAntoine Musso2019-11-041-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each component (builder, publishers...) is loaded everytime dispatch() is called. Its main purpose is to lookup the type of the component. However pkg_resources.EntryPoint.load() is a costly operation and it was done every single time dispatch() is called. Against Wikimedia configurations files [0] it is extremely noticeable. The entrypoint is loaded solely to figure out its type. I do not see any good reason for it to change, thus introduce a new cache _component_type_cache. That then let us prevent invoking load() every single time. Run time to generate Wikimedia configuration files went from 17 seconds to a mere 4 seconds! [0] https://gerrit.wikimedia.org/g/integration/config/+/master/jjb/ Change-Id: I49bc5dc91e3ba69b7f15c5f5ded8a42fb61a60c2
* | registry: preload entrypoints before cachingAntoine Musso2019-10-281-2/+3
|/ | | | | | | | | | | | | | | | | When profiling a JJB run against Wikimedia configuration files [0], I noticed a lot of calls to package_resource trying to figure out the version. Years ago, I already added coded to cache the entrypoints, unfortunately only the entry point definition got cached not the underlying function. Thus each entry point ends up invoking a load() which dramatically slow down JJB. A low hanging fruit is to invoke load() and cache the returned function. Doing so, the run time goes down from 28 seconds down to 17 seconds. [0] https://gerrit.wikimedia.org/g/integration/config/+/master/jjb/ Change-Id: I336b556f28328d8acbdd71c43c8775d55c3720d8
* Merge "Fix Authorization properties for folder and job in Folder"Zuul2019-10-133-3/+65
|\
| * Fix Authorization properties for folder and job in FolderJo Rhett2019-10-023-3/+65
| | | | | | | | | | | | | | | | | | This outputs the correct XML schema for authorization properties for both a folder, and a job inside a folder. Story: 2006493 Story: 2006611 Change-Id: I14662855613ce146f74b85f5978a0ed828f4439b
* | text-finder: support not-built-if-foundChristoph Berg2019-10-103-1/+5
| | | | | | | | | | | | | | | | Added upstream June 2018 in https://github.com/jenkinsci/text-finder-plugin/pull/16 Released upstream with 1.11 in June 2019: https://wiki.jenkins.io/display/JENKINS/Text-finder+Plugin Change-Id: I28cf1425da98091ae0b19f450aea3fa5de6546c6
* | Add support for new 'notify every failure' option in Slack PluginSylvain Baubeau2019-10-044-0/+6
|/ | | | Change-Id: Idd48c5c0e595195aaecfee9aab7233cbf1d1a640
* Setup python-black for auto code style fmtThanh Ha2019-09-091-8/+18
| | | | | | | | | Instead of having our reviewers spend time and effort commenting on code style in changes let's make the process more automated by using an opinionated tool like python-black. Change-Id: Ia2724a0b38381a2ef1860c3fcd9d44bb51b8ddbb Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Auto-generated output from python-blackThanh Ha2019-09-0989-9994/+10537
| | | | | | | | | 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>
* Merge "Add support for two new plugins, and a new version of one"Zuul2019-08-1519-1/+366
|\
| * Add support for two new plugins, and a new version of onekendallpcdoctor2019-07-2519-1/+366
| | | | | | | | | | | | | | | | | | | | | | Added new support for the following plugins: Perforce plugin: https://wiki.jenkins.io/display/JENKINS/Perforce+Plugin InfluxDB plugin: https://wiki.jenkins.io/display/JENKINS/InfluxDB+Plugin Added support for v3.0 of the following plugin https://wiki.jenkins.io/display/JENKINS/Priority+Sorter+Plugin Change-Id: If109863a91710c08b34dee622496e551a7b3b520
* | Merge "Avoid ResourceWarning by closing file handlers when finished"Zuul2019-08-152-1/+5
|\ \
| * | Avoid ResourceWarning by closing file handlers when finishedPhilip Roche2019-07-292-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Warnings appear when running local_yaml unit tests. This commit fixes the issues causing these warnings ``` ResourceWarning: unclosed file <_io.TextIOWrapper name='jenkins-job-builder/tests/yamlparser/fixtures/include_path001.conf' mode='r' encoding='utf-8'> jjb_config = JJBConfig(self.conf_filename) ``` Change-Id: I8fec288cce8c9f6c7b928886d7c70f7a35d43b4a
* | | Merge "Add support of "disableDeferredWipeout" option to workspace cleanup ↵Zuul2019-08-158-1/+13
|\ \ \ | | | | | | | | | | | | plugin"
| * | | Add support of "disableDeferredWipeout" option to workspace cleanup pluginSergii Kipot2019-08-148-1/+13
| | | | | | | | | | | | | | | | Change-Id: I2edd0343966e1720161c291b811b989f005495fb
* | | | Merge "Added missing 'filters' parameters for rabbitmq trigger plugin"Zuul2019-08-153-2/+52
|\ \ \ \ | |/ / / |/| | |
| * | | Added missing 'filters' parameters for rabbitmq trigger pluginSergey Lebedev2019-08-063-2/+52
| | | | | | | | | | | | | | | | Change-Id: Ide9e02c7b5a327a17521aac8d25ccff285bbd89a
* | | | Fix encoding error in builder.pyAchim Leitner2019-08-081-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling `jenkins-jobs update --delete`, the builder will create an XML dom tree from the xml string. It fails to correctly encode the string, which results in a UnicodeEncodeError if the string contains any non-ascii characters. Story: 2006374 Task: 36163 Change-Id: I2caf91dcaf2c1b6c03e92a485a3aa51b038b40b1 Signed-off-by: Achim Leitner <git@fjl.de>
* | | add support for 'override-topic' in jms-messaging triggerWaldemar Znoinski2019-08-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | overrides->topic is now supported in the jms messaging Jenkins plugin hence we need support it in jjb. see triggers section at: https://wiki.jenkins.io/display/JENKINS/JMS+Messaging+Plugin Change-Id: I389e59cca4f649379614f7f6247bf76cf4a0ba94
* | | Revert "Add support for rendering jinja template as yaml"Daniel Watkins2019-07-296-89/+5
|/ / | | | | | | | | | | This reverts commit a9e12ed4a9f5866da0af5fdc68f60b09ca8efa4b. Change-Id: I2bbb2cc167a4c2cd95ac6b376ebe83bcf7a263ad
* | Fix typo in bitbucket_scm discover-branch parameterJelle van der Waa2019-07-221-1/+1
| | | | | | | | | | | | | | | | The parameter is wrong in the Python docstrings since it's used as discover-branch in code. Change-Id: I9c3108c297e2261e3bfa8dffd29da766ad44716a Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>