summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* | Adding support for the cachet gating pluginAviel Yosef2019-07-193-0/+53
| | | | | | | | Change-Id: Ie50d25d09a094f2315e790288f3c3f1619ffdb7f
* | Merge "Add support for rendering jinja template as yaml"Zuul2019-07-156-5/+89
|\ \
| * | Add support for rendering jinja template as yamlPhilip Roche2019-07-126-5/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also adds support for using custom loaders in job definitions not just job-templates and builders. I have also added unit tests for include-jinja2-as-yaml custom loader. Example usage: - axis: type: user-defined name: VERSIONS values: !include-jinja2-as-yaml: versions.j2.yaml.inc Where versions.j2.yaml.inc is {% for possible_versions in configuration["possible_versions"] %} - {{ possible_versions["versions"] }} {% endfor -%} Change-Id: I15a431d5a86b29d704efda8576965ade2b7dcd2f
* | | Correct dependencies on tox lintersSorin Sbarnea2019-07-132-2/+3
| | | | | | | | | | | | | | | | | | | | | Linters only requirement is pre-commit, as the tools takes care of the rest. This speeds up linting and lowers disk footprint by removing unnecessary deps. Change-Id: I82b974a5257671bc2e8e987d0f556ddae345feea
* | | Add support for GH Custom Notification ContextIvan Fernandez Calvo2019-07-023-0/+17
|/ / | | | | | | | | | | Task: #35637 Story: #2006141 Change-Id: Id4bbc73a709a7cd292072ab66666bd647f0514a6
* | Merge "remove support of old plugin config format"Zuul2019-06-264-46/+3
|\ \
| * | remove support of old plugin config formatSorin Sbarnea2019-04-164-46/+3
| | | | | | | | | | | | | | | | | | Remove code refering to old plugin config format. Change-Id: Iba0922d3bfe066444e5e982c303968d15e1853a1
* | | Merge "Ignore view update if not specified"Zuul2019-06-071-0/+5
|\ \ \
| * | | Ignore view update if not specifiedThanh Ha2019-04-101-0/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | Similar to job updates when passing a specific job name in the CLI, views should also be ignored if they were not explicitly specified. Change-Id: I77488b0af453964f77bc8d565d43f404327ef139 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | | Add support for 'Micro Focus Application Automation Tools'Johann David2019-06-065-0/+127
| | | | | | | | | | | | Change-Id: Ie514614889daeccbd15b5b2cfffc6157c272849e
* | | Merge "Include support for jacoco source inclusion pattern"Zuul2019-05-176-0/+8
|\ \ \
| * | | Include support for jacoco source inclusion patternPatrick Paul2019-05-066-0/+8
| | | | | | | | | | | | | | | | Change-Id: Iec75f7041e38bda09abf4d85abc15219259eff2c
* | | | Merge "fix job-template call in include-raw-escaped fixtures"Zuul2019-05-062-2/+2
|\ \ \ \ | |/ / / |/| | |
| * | | fix job-template call in include-raw-escaped fixturesEvgeni Golov2019-04-162-2/+2
| | |/ | |/| | | | | | | | | | | | | the correct term is job-template, not template-job Change-Id: I01e7aea19d95c103f1a1a3d5d4bafeb95a53ab87
* | | Add 'skip-initial-build' to project multibranchChris Koehnke2019-04-269-0/+16
| | | | | | | | | | | | | | | | | | | | | Adds support for the skip initial build option added by https://github.com/jenkinsci/basic-branch-build-strategies-plugin/pull/4. Change-Id: I903de7605fa1f0e3ada027ada07a7972d2ca9603
* | | OpenDev Migration PatchOpenDev Sysadmins2019-04-192-4/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
* / Add `Specs support` for `artifactory_generic`Andrey Kostrov2019-04-107-0/+115
|/ | | | | | | | | | | | | Add support of Artifactory Specs https://www.jfrog.com/confluence/display/RTF/Using+File+Specs As for now, JJB doesnt support of Artifactory Specs, only deprecated way is supported. This patch adds possibility for using of Specs inside Jenkins plugin https://www.jfrog.com/confluence/display/RTF/Jenkins+Artifactory+Plug-in Change-Id: I69e64202972f9f9b9147fdd65daffc2734a7d0cd