Commit Graph

439 Commits

Author SHA1 Message Date
Kienan Stewart 804fcf903e Update TAP publisher plugin
Add support for the following configuration options:

 - stripSingleParents
 - flattentTapResult
 - skipIfBuildNotOk
 - removeYamlIfCorrupted

Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Change-Id: I387e5cd46fadb54e478627346dc6b4223bda1fc0
2024-01-24 11:15:24 -05:00
Ettore Leandro Tognoli d839dc7699 Add discord-notifier publisher
Plugin page: https://plugins.jenkins.io/discord-notifier/
Requested on: https://github.com/ettoreleandrotognoli/jjb-discord/issues/1

Change-Id: If34f0dec29af661d62f6b7b7110297fd1751ab8e
2023-03-29 17:27:25 -03:00
Piotr Falkowski 927bb1919b Support for follow-symlinks in archive publisher
Change-Id: I1d5bd1c6ef5ccdf5f304dabf3a9afcb59d2b2baf
2023-01-16 22:06:49 +01:00
Vsevolod Fedorov f4d64f9f66 Move tests to pytest
Pytest makes each scenario into individual selectable test.
To be able to run each scenario separately is very useful for development.

Change-Id: I4b1c990a1fd839ce327cd7faa27159a9b9632fed
2022-12-20 10:44:43 +03:00
Zhang Xiaoxu 013c1a0835 Add support git publisher rebase before push
This change adds support for git publisher rebase before push. [0]

[0] https://plugins.jenkins.io/git/

Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Change-Id: I3cb0eecbbee6c51433cb4e3b856a3165462f49d1
2022-01-28 11:57:41 +08:00
Matthieu Baerts deafd08377
junit: add 'Skip marking build as unstable on test failure' param
This new option has been added in JUnit v1.51

  https://github.com/jenkinsci/junit-plugin/releases/tag/junit-1.51

The user can decide not to mark a build as unstable on test failure.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Change-Id: I960ed98cf4b0f8f632546492f6dbb6d1aa0055c9
2021-08-31 18:18:48 +02:00
Matthieu Baerts 93ae6dd1e4
junit: add 'Skip publishing checks' param
This new option has been added in JUnit v1.39

  https://github.com/jenkinsci/junit-plugin/releases/tag/junit-1.39

The user can decide not to publish issues to SCM provider platforms.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Change-Id: I543dbd5cb355acc5106336afd8953a03245df2fa
2021-08-31 18:18:48 +02:00
Matthieu Baerts b63898421d
junit: fix duplicated entry in test file
'allow-empty-results' is already set 5 lines before.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Change-Id: Ibd342379e68293da392948f1510c1d529ae93d8d
2021-08-31 18:18:48 +02:00
Matthieu Baerts 1d6e580ff3
xunit: support versions 3+
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>
2021-03-17 16:21:33 +01:00
David Aguilar ac9861d2fb publishers/join-trigger: advertise "threshold" in the docs
The join-trigger documentation still uses the deprecated
"even-if-unstable" field in its examples.

Update the "join-trigger001.yaml" fixture referenced by the
documentation to use the "threshold" configuration instead.

Add a new fixture to retain coverage for "even-if-unstable".

Change-Id: Ic8b28b384e0a6d7e43833d2db9524a41e4508ba7
2020-11-07 13:35:47 -08:00
Alexandre Erwin Ittner 8ed66b00a2 Slack: support custom messages per build result
Add support for custom messages per build result in the Slack
notification plugin.

Change-Id: Iafc8b67528914c6d14c78f72aa535a3cfa7f7033
Story: 2007912
Task: 40315
2020-10-15 20:15:04 -03:00
Eren ATAS 2a5acc24d6 Updated Email Extended Publisher Plugin
Parameters inside triggers were not updated while the upper
parameters were changed, were staying as default. Updated
the implementation to make it take from the upper level.

Change-Id: I16fc3525fcdf0a8bf3aea3b8422f0f2ad26f9e24
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-09-18 11:59:43 +02:00
Eren ATAS a24a547de0 Updated ext-email support
Added also a test case for version specific changes

Change-Id: I5213dccffc441037c63ee7c042aee4a8a84d9732
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-09-02 15:37:16 +02:00
Eren ATAS 15ee9899b8 Added property-multiline for parameterized build trigger plugin
Updated test cases as well, The tag has been introduced after 2.35.2
therefore the parameter is also >=2.35.2

Change-Id: Ie0801108a16969b420b341e2deaa6ba62deb116c
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-07-31 14:12:00 +02:00
David Aguilar a580a6240c publishers: add "threshold" support to join-trigger
The joinTrigger plugin now accepts a resultThreshold field instead
of the evenIfDownstreamUnstable boolean.  Add support for a "threshold"
yaml field to manage this value.

Change-Id: I60ba999b963709a76854a4d50387d2b1eefae05f
Signed-off-by: David Aguilar <davvid@gmail.com>
2020-06-23 23:35:05 -07:00
Christian Kanthak dc36dca479 Add "upstream-committers" to publisher "email-ext"
Add support for the recipient item "Upstream Committers" of the
"Send To" list of a trigger of the "Email Extension" (email-ext)
plugin.

Change-Id: Iaa77330bb1910881df154494b0472ce21ea28d99
Task: 39595
Story: 2007607
2020-05-04 17:42:14 +02:00
Artem Nikitin 9cff4f295e Add execute-on parameter for post build steps
executeOn setting is available for PostBuildStep
since 2.0 version of the Post Build Script plugin.
For previous plugin's version executeOn should be
set on the PostBuildScript layer.

Change-Id: I6b7c9ccfbd0a2d610499074675835e6b5d96cb17
Task: 39028
Story: 2007411
2020-03-12 17:04:46 +00:00
John Oram f760f090fc
Add support for opsgenie notification plugin
Change-Id: Id84b3d9282568cf47d5feb930fd618afe969b45f
2020-01-07 12:41:26 -05:00
Christoph Berg 6e835286f1 text-finder: support not-built-if-found
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
2019-10-10 14:50:59 +02:00
Sylvain Baubeau 84c114c088 Add support for new 'notify every failure' option in Slack Plugin
Change-Id: Idd48c5c0e595195aaecfee9aab7233cbf1d1a640
2019-10-04 13:01:10 +02:00
Thanh Ha 4d90c187a9 Auto-generated output from python-black
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>
2019-09-09 19:23:24 +01:00
Zuul ead185134d Merge "Add support for two new plugins, and a new version of one" 2019-08-15 19:00:57 +00:00
Sergii Kipot 38aa498df3 Add support of "disableDeferredWipeout" option to workspace cleanup plugin
Change-Id: I2edd0343966e1720161c291b811b989f005495fb
2019-08-14 20:50:06 +02:00
kendallpcdoctor 5117d87e8c Add support for two new plugins, and a new version of one
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
2019-07-25 13:12:49 -07:00
Zuul 5d15fe7631 Merge "remove support of old plugin config format" 2019-06-26 14:19:34 +00:00
Johann David dfbcbb2510 Add support for 'Micro Focus Application Automation Tools'
Change-Id: Ie514614889daeccbd15b5b2cfffc6157c272849e
2019-06-06 22:54:44 -04:00
Patrick Paul ddc5ee77b1 Include support for jacoco source inclusion pattern
Change-Id: Iec75f7041e38bda09abf4d85abc15219259eff2c
2019-05-06 18:01:09 -07:00
Sorin Sbarnea 71f1c89b65
remove support of old plugin config format
Remove code refering to old plugin config format.

Change-Id: Iba0922d3bfe066444e5e982c303968d15e1853a1
2019-04-16 09:08:05 +08:00
Zuul 9462a710f1 Merge "Add 'publishers-from' to the publishers module" 2019-04-10 01:13:17 +00:00
Norbert Grünwald 062b759ee9
Add 'publishers-from' to the publishers module
This adds the 'publishers-from' action to the publishers module.
It enables the "Use publishers from another project" provided by
the "Template Project Plugin".

Change-Id: I6fb030a99bccaa79e4f99efe012ff63c6d376a38
2019-04-09 09:34:19 +08:00
Areum Cho 55de214675
Add support for Packer plugin
Change-Id: Idcb85f53656efb07a6aafe28f60ecafd9011fab4
Co-Authored-By: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2019-04-09 09:24:20 +08:00
Kyr Shatskyy b67c0bc754 Add support for 'RocketChat Notifier Plugin'
Change-Id: I78755fb1d116a6e164817589457fe132b81a89eb
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
2019-03-04 20:54:58 +00:00
Zuul 4e55ab1136 Merge "Add retry support to plugins depend on Publish Over X" 2018-12-27 11:33:31 +00:00
Li-Wen Hsu 78e4f00c6b
Add retry support to plugins depend on Publish Over X
Change-Id: Ic5a1ce530ad93b84f0444666ca40fed98b0460bc
2018-12-17 18:27:22 +08:00
tanhengyeow 2914c7a773
cucumber-reports: Add support for new options
Change-Id: Ia447c8ab95d6ea9782ba0092c42b95571625b97f
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
2018-12-07 20:09:28 +10:00
tanhengyeow e46a3be4fe jclouds: Utilize convert_mapping_to_xml
Change-Id: I319aee86daf63f17778f020dea6b3756db04127d
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
2018-10-29 15:03:53 +00:00
tanhengyeow 2ac70b93c5 Add support for docker-stop-container
Change-Id: I0c93113acdba170d1e2e54f2295819acc7a37d21
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2018-09-18 00:11:14 +08:00
Darragh Bailey de4fb862f3 Allow control of verbose option for publish-over plugins
The publish-over plugins all expose the option 'verbose' to all for
lots of debug output from the connection to be outputted to the jenkins
console. However by default this is supposed to be disabled ('false')
so update the existing code to switch to the correct behaviour.

Change-Id: Ie9acb1a005a25cd5c9f279cc89d5178eb8d54dd7
2018-08-23 14:57:33 +01:00
tanhengyeow 9ab35beae8 Refactor clone_workspace function to use convert_mapping_to_xml
1. Refactored the code in the function to utilize convert_mapping_to_xml's
way of detecting valid types.
2. Refactored optional parameters to use convert_mapping_to_xml

Note:
This update will affect users using lowercase inputs in their YAML files.
An exception will be raised if the inputs doesn't follow the exact
casing required by the plugin.

Change-Id: I053ef5f58200e51b3f6ff5ec55760f9e6f095370
2018-07-13 22:56:12 +08:00
Sorin Sbarnea c2781e670f
Normalize newlines at end of file
Preparatory move for adopting pre-commit hooks.
Shoudl only remove newlines and spaces at end of files.

Change-Id: Ia33679467c533722b9308f7e7b74be395c926428
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-06-29 16:07:06 -04:00
Zuul f7b40a6159 Merge "Add publishers related to GitLab Plugin" 2018-06-21 17:40:18 +00:00
vgorin 29a8ad7683 Add publishers related to GitLab Plugin
Currently we have only possibility to set build status on GitLab
But GitLab Plugin provides us to make a comments and to vote on Merge Request
* Add Gitlab Message - configure Gitlab publisher to post comments on MR
* Add Gitlab Vote - jenkins set Vote for build status on GitLab MR

Change-Id: I30d2fbed647763f2a5eb6fb801dd79f6d43d4696
Co-Authored-By: Kien Ha <kienha9922@gmail.com>
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2018-06-19 18:39:35 -04:00
Zuul 383163d3a1 Merge "Add support for Jenkins Sounds plugin" 2018-06-16 20:48:45 +00:00
Tomas Hartmann ff2d631d1a Add trigger-from-child-projects option.
Update trigger-parameterized-job arguments, to include
trigger from child projects.

Closes-Bug: story/2002157
Change-Id: Iae0610ee942dd2cad95e3fcaa8b70b16f42b3c50
2018-06-08 09:06:39 +00:00
Kei YAMAZAKI 30e78cbc7c Add support for Jenkins Sounds plugin
Change-Id: Ib5b8d24549ef47c308a49ed79d9cb1784cb67921
2018-06-06 16:29:28 -04:00
Joost van der Griendt beeb50564e adding extra properties to sonar publisher
Allows you to explicitly set which sonar configuration to use
for the sonar analysis when having more than one sonar installation.
In this case you are required to select which one to use,
as there is no default fallback in the Jenkins plugin itself.

Also added a similar option for configuring the maven installation
to use. This does have a default value, the version used in the
maven build in the same job. However, if for some reason you
need a different version of maven for sonar analysis you
have to be able to configure which one.

Adds parameter installation-name for the sonar configuration,
and maven-installation-name for the maven configuration.

Change-Id: I013ea80688efa17334448e6394d312ca6854cf07
2018-05-23 16:35:56 -04:00
Zuul 5c6e55ebcb Merge "conditional_publisher: add support for Matrix Aggregation" 2018-05-19 05:17:48 +00:00
spalger 8fed481867 Fix dontWaitForConcurrentBuildCompletion option in s3 plugin
Story: 2002042
Change-Id: Ied3dbc06a586ec2d39227207458f92d15c8240d5
2018-05-15 15:30:26 -07:00
Zuul 7696ea37fd Merge "Add support for Cloud Foundry plugin" 2018-04-30 21:39:21 +00:00
Zuul 30068062b2 Merge "Add Slack 2.2 new settings" 2018-04-30 21:37:49 +00:00