| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
It's helpful to have possibility to set `jobAlias` in case the
same job is used multiple times with different configurations.
Change-Id: Ic092c6b2f5d893e75ebce4aaebc7eaf88a8978a6
|
|
|
|
|
|
|
| |
Updated gerrit trigger support to include the new exclude private and
exclude wip changes.
Change-Id: I75d8113941e4e455ec34fab23d347816c2ef699b
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
It's nowadays opendev.org so use that.
Change-Id: I91382e8d18deec6c91e84d9232f013792631e66a
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Iaf352e8cc62644fb05afaae21630b9bec2cd30c0
|
|\| |
|
| |
| |
| |
| | |
Change-Id: I13532a16efc6e970ab5a7c021ec4d77be98d3de8
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
| |
Change-Id: Idd48c5c0e595195aaecfee9aab7233cbf1d1a640
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | |
| | | | |
plugin"
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I2edd0343966e1720161c291b811b989f005495fb
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ide9e02c7b5a327a17521aac8d25ccff285bbd89a
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| | |
This reverts commit a9e12ed4a9f5866da0af5fdc68f60b09ca8efa4b.
Change-Id: I2bbb2cc167a4c2cd95ac6b376ebe83bcf7a263ad
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Change-Id: Ie50d25d09a094f2315e790288f3c3f1619ffdb7f
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| | |
Task: #35637
Story: #2006141
Change-Id: Id4bbc73a709a7cd292072ab66666bd647f0514a6
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Remove code refering to old plugin config format.
Change-Id: Iba0922d3bfe066444e5e982c303968d15e1853a1
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | | |
Change-Id: Ie514614889daeccbd15b5b2cfffc6157c272849e
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: Iec75f7041e38bda09abf4d85abc15219259eff2c
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
the correct term is job-template, not template-job
Change-Id: I01e7aea19d95c103f1a1a3d5d4bafeb95a53ab87
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adds support for the skip initial build option added by
https://github.com/jenkinsci/basic-branch-build-strategies-plugin/pull/4.
Change-Id: I903de7605fa1f0e3ada027ada07a7972d2ca9603
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 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
|