LegacyVersion class is removed from newer setuptools package. But
support for legacy versions is added in python-jenkins 1.8.2.
Switch to that implementation.
Fix broken plugin version comparison for legacy versions.
Assume latest plugin version if no plugin version is found.
Story: 2010990
Story: 2009943
Story: 2009819
Story: 2010842
Task: 49236
Task: 44852
Task: 44396
Task: 48448
Change-Id: Id7f0be1c42357454bd9bedcdee3fefb174943d81
fix/2010888 Add documentation of default value for the "current-parameters" value in the "trigger-builds" builder.
Resolves https://storyboard.openstack.org/#!/story/2010888
Change-Id: Idab9dd0b3cf44b0756019e0e0d3f92f83c0b34b8
Rename fixtures directory to job_fixtures to prepare for adding view_fixtures
directory in the following commits.
Change-Id: Ic20997cae020b542ddc22bf444fa6b92fbcae064
Job DSL plugin supports execution of its groovy DSL code
via sandbox, but until now there was missing option to control it.
Change-Id: I8dccfc608cf59ac46ded712dc937983a22b9d3b3
Sphinx was pinned to >1.5.0 <=1.7.0 4 years ago. It is now on v4.4.0,
and we're seeing an incompatibility with the latest version of jinja2.
Along with updating the Sphinx version, this also includes fixes for
several warnings generated in the latest version:
* Outdated docs due to the removal of the "parser" param from
Base.get_xml
* Class lookup issues
* External links for which we have extlinks defined
* Deprated PyModulelevel is replaced by PyFunction
* sphinx.ext.autodoc.Documenter.get_doc signature changed
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: Iba65fb724f098f3e4a0b20f2a183cb2ea3c450ea
Jenkins Wiki has been fully taken off line, so update the remaining
links to reference either the relevant plugin page or the github repo.
Add extlink target for repo in jenkinsci github org.
The sonatype-clm plugin seems to be more-or-less completely deprecated,
so update the description to indicate this and link to the
nexus-artifact-uploader plugin.
Update the jjb sphinx plugin so that it generates references for the
yamlfunctions.
Change-Id: If2241e751d01a60a8cb4cbaea5b3176aeb92eab4
Signed-off-by: Pat Long <pllong@arista.com>
A new major version (3.0.0) of XUnit plugin has been released in January
2021:
https://github.com/jenkinsci/xunit-plugin/releases/
I didn't have an issue when I upgraded the plugin from version 2.4.0 to
3.0.0. But I started to have this error at the end of a build and I
guess it appeared only after having modified the configuration of the
Jenkins jobs with JJB:
ERROR: Build step failed with exception
java.lang.IllegalArgumentException: The tools section is required.
at org.jenkinsci.plugins.xunit.XUnitProcessor.<init>(XUnitProcessor.java:139)
at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:204)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752)
at hudson.model.Build$BuildExecution.post2(Build.java:177)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697)
at hudson.model.Run.execute(Run.java:1932)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Publish xUnit test result report' marked build as failure
When looking at the configuration of the job from the Web UI, the XUnit
plugin was enabled but left "unconfigured": no file to look at.
Apparently, JJB is sending a XML config that is not understood by XUnit
plugin anymore. I guess I didn't have any issue before updating the
Jenkins jobs with JJB because when upgrading XUnit plugin from 2.4.0 to
3.0.0, Jenkins migrated the config to the new format.
From what I see when analysing the generated XML from JJB and the one
from Jenkins after having configured a job manually, a sub-element has
been renamed, from 'types' to 'tools'. I suspect this is caused by this
commit:
https://github.com/jenkinsci/xunit-plugin/commit/aa47ac57d
(XUnitBuilder class had this line: @XStreamAlias("types"))
So here, I simply picked 'tools' or 'types' for the sub-element and
depending on the plugin's version in both the builder and the publisher
parts. I'm only using the publisher but I guess the problem is the same
with the builder.
Tests have been adapted to verify both versions <3.0.0 and >=3.0.0.
Change-Id: Ie78539d0ae25ddc139ad9982cdffd2e683dd40b2
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
If there is the only one macro step in the conditional-step builders
with more than one build steps in the macro, it translated into the
SingleConditionalBuilder Jenkins XML tag, instead of ConditionalBuilder.
It leads to an invalid Jenkins configuration in that case.
Change-Id: Ib9866d93e4ee9fa2823dfb1b5d15870ff56ab9f8
System groovy has difference with the simple groovy command. System
groovy result XML for system groovy command (script), looks like this:
<hudson.plugins.groovy.SystemGroovy plugin="groovy@2.3">
<source class="hudson.plugins.groovy.StringSystemScriptSource">
<script plugin="script-security@1.75">
<script>Groovy command</script>
<sandbox>[true|false]</sandbox>
<classpath>
<entry>
<url>...</url>
</entry>
...
<entry>
<url>...</url>
</entry>
</classpath>
</script>
</source>
<bindings>...</bindings>
</hudson.plugins.groovy.SystemGroovy>
Change-Id: I85eb5848de2a817ab132559b53cbeb316931195f
Resolves flake8 BLK related issues.
"BLK100 Black would make changes."
"BLK999 Unexpected exception: ..."
Change-Id: Ic6d4265e3d02b2f2a15ab851eaed98288c62730c
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Introduce 2 booleans in the Gradle builder section to support passing
parameters by System Properties and Project Properties
Change-Id: I0de1e20b85902263e0d83ccadd64d42fc2b37193
Implemented new parameter "disable-host-key-checking" to make the
"anbile-playbook" builder compatible with version >=1.0 of the ansible
plugin. The parameter defaults to "false" for security reasons (as the
plugin does).
The old parameter "host-key-checking" is still written to XML to keep
code working in a setup with plugin version <1.0. This has no impact
on newer setups because the plugin with version >=1.0 ignores the old
parameter value.
For same security reasons the default value of old parameter
"host-key-checking" was changed to "true" to "fix" older setups which
have the parameter not defined.
Change-Id: I4a592c1a4d6ba8bb4f365ce505296cf5c09f7e19
Task: 39789
Story: 2007678
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>
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>
It's helpful to have possibility to set `jobAlias` in case the
same job is used multiple times with different configurations.
Change-Id: Ic092c6b2f5d893e75ebce4aaebc7eaf88a8978a6
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>
This commit adds a parameter to the ansible builder, vault-credentials-id.
This maps to the element <vaultCredentialsId> in the resulting job
definition, and has been tested against the Jenkins Ansible plugin
v1.0.
Change-Id: I40cfd9225923b29c9d2714a60279f1c88f6cb88c
The 'release' phase was missed in the development of this feature.
Change-Id: Ia4660d6b8a86bb43e6ea38802e22c6a5ce06834c
Signed-off-by: Thanh Ha <zxiiro@linux.com>
This adds the 'publish-over-cifs' action to the builders module.
It enables the "Send files to a windows share" build step,
provided by the "Publish Over CIFS Plugin".
Change-Id: I80cb2f86091ef53a284cf85a381294bbb6133010
- upgrade flake8 to 3.6.0
- remove use of hacking since pre-commit replaced it
- mentioned minimal flake8 version on pre-commit config
- fixed newer linting errors
- disable W504 as it seems not possible to fix (conflict with W403)
- replaced buggy tox deps installation with native pip install, which
address the issue of missing to install new deps when the reqs files
are updated, developer being forced to to recreate the virtualenv.
- prepare for migration from tox-pep8 to tox-linters, now these being
just aliases.
Change-Id: I310578dce215aaf00a5b2d54716f90da9a1ecb4d
Depends-On: https://review.openstack.org/#/c/613726/
This change allows for the user to specify the following checkboxes:
* Upload Bitcode?
* Upload Symbols?
* Compile Bitcode?
The plugin defaults to these checkboxes being checked, so I kept those
defaults here.
Change-Id: I727611fd2a70f2157b05d030ec296c74a5b214a8
New options include:
1. exclude
2. result-var-suffix
This update affects copyartifact in builders.py
Change-Id: I682a10be47f049fe457e5bc199aa50a5583958a7
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
The refactoring process includes the following
1. Converted all relevant functions to use helpers.<insert function>
instead of a specific import.
2. Standardized indentation for mapping tuple
3. Add commas to last entries of mapping tuples
Change-Id: Ied80c8354b9d59639eba1a3bb9794f19d15c6ba3
Branched from my xcode-20 branch and rebased from master
and added support for xcode 9.1 now that the xcode plugin has been
released
Due to:
https://issues.jenkins-ci.org/browse/JENKINS-45509
Change-Id: Ibd0f4c82b5e8f37a9da335c57786eae5dc91aefb
This patch adds support for aggregated test results in the Jenkins
MultiJobProject plugin.
Change-Id: I5c98f7814d33a740d9a70b584e00d1aa5f50e0ea
Signed-off-by: Major Hayden <major@redhat.com>