Commit Graph

85 Commits

Author SHA1 Message Date
Piotr Falkowski 288308b476 Support for Build Failure Analyzer plugin
Change-Id: Iac57193984751a8e93b83a38e7e3bf140821edab
2023-01-16 21:34:52 +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
Ruan Bahia da50ce7320 fix branch-api valid time periods
removes first letter capitalization from the valid time periods, e.g.:
    - Second -> second;
    - Minute -> minute;
    - Hour -> hour;
    - and so on...
- only lowercase time periods are recognized by Jenkins Branch API Plugin:
    - that can be observed on the plugin implementations themselves:
        - https://github.com/jenkinsci/branch-api-plugin/search?q=Minute
        - on the Message.properties file it can be verified that the
          value of the "Minute" property is actually "minute", and that
          can also be validated pratically, setting the durationName
          XML to "Minute" is not effective, Jenkins effectively
          interprets it as default "Hour" since "Minute" is not valid.

Change-Id: I25f0a3945b9d708fa2de5c5fdb7f39a9432b5cc3
2022-12-19 10:27:27 -03:00
trunov_ms 2aec5fc2e6 STORY: 2009856
added support for Matrix Authorization Stategy 3.0+ version

Change-Id: I46521033d9fd6f7f4ae59d8784f9fbfdd49958ed
2022-03-09 10:05:12 +05:00
Bracken Dawson 59317562ec
Second & Minute are now supported by branch-api
Since version 2.5.3 the branch-api plugin allows users to specify Minute
and Second as the time period for rate limiting.

Task: 42803
Signed-off-by: Bracken Dawson <abdawson@gmail.com>
Change-Id: Id3558d818e2927ecc3d775870ad1929f0fda2e6f
2021-07-11 21:47:54 +01:00
Oliver Gondza 572cb7abdd Add support for Jenkins Gating property
https: //github.com/jenkinsci/gating-core-plugin
Change-Id: Ia649fe13e3add2c8d6125b775e376621d9d0408d
2021-02-01 10:56:22 +01:00
Zuul ba91e9165d Merge "Added support of Office-365-Connections plugin properies configuration" 2021-01-17 14:20:17 +00:00
Zuul cbc9876189 Merge "Add Gogs Plugin" 2021-01-17 14:16:28 +00:00
Unpublished fedd4b52ab Add Gogs Plugin
Change-Id: I0230a605fd2c3d0c8f7df2c497f3b837499f8758
2021-01-16 12:21:15 +01:00
Igor Lakhtenkov 7cb8169c83 Added support of Office-365-Connections plugin properies configuration
Change-Id: I2108023da57d2d412c0dcca5e513d20fdf059059
Task: #41566
2021-01-15 06:07:29 +03:00
Igor Lakhtenkov 5dd51be6e6 Added property for configuration of speed/durability setting of the job
Change-Id: Ic20aaa55a21fdd88ede95e15ce81c0c613493819
Task: #41581
2021-01-13 18:10:58 +03:00
Eren ATAS fed356f4ac Support for Naginator-Opt-Out property
Test case is added.

Change-Id: I3d26391b9f8f4cd5e3ca8df38271c4a01f7b8ce2
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-09-25 14:55:36 +00:00
Adam Romanek 703a76650f Fix Authorization Matrix property - inheritance strategy
Up until now <inheritanceStrategy> tag was only added to jobs-in-a-folder
and folder configs. In JJB the tag's class is always set to
"InheritParentStrategy" which according to the docs means the "item will
inherit its parent items permissions". Apparently <inheritanceStrategy>
tag needs to be present on top-level jobs also. For top-level jobs
setting the tag's class value to "InheritParentStrategy" means the job
"will inherit the global security security settings" and this is the
default behavior.

The code has simplified a bit - if it's a folder then we use a different
property name for authorization matrix property, other than that the
code is the same for all three "variants": folder, job-in-a-folder and
job-outside-a-folder (top-level job).

Also this change fixes the missing <inheritanceStrategy> tag for
job-in-a-folder, where the folder name was specified as part of the
"name" key instead of the standalone "folder" key. With this change we
no longer check if a job is in a folder or not, so it's implicitly
fixed. Added a test case to catch potential regressions in the future.

The copyright notice reflects this and the previous contribution in this
module.

Change-Id: I84b22c09c8a107aab2b4eca20feffc9b61675a92
2020-07-15 13:11:33 +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
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
Aviel Yosef c907f7708c Adding support for the cachet gating plugin
Change-Id: Ie50d25d09a094f2315e790288f3c3f1619ffdb7f
2019-07-19 09:14:06 +03:00
Alexander Evseev 43f002c65a Property to disable job resume on Jenkins restart
Change-Id: I1bb63ecc02b9f74e59aec70811eaca7c082665be
2019-04-03 16:11:27 +03:00
Thiago Miotto 0f2c43fccf Adds match-script and groovy-sandbox to Lockable Resources Plugin properties
Change-Id: I45db7b1a58f2dea4d46aba61aaf16383d30f1b50
2019-02-22 12:03:11 -03:00
Norbert Grünwald 91a3624c45 Add support for the "Gitlab Logo Plugin"
This adds support for the "Gitlab Logo" plugin
to the properties module.

Change-Id: I7bcffbcb31e478da3e4dd43dedb47e13d6364802
2018-10-17 08:43:08 +02:00
Norbert Grünwald 1709ba73c8 Add support for the "Disk Usage" plugin
This adds support for the "Disk Usage" plugin
to the properties module.

Change-Id: Icead10ae6e4e2e637dddd542128779bf5579d293
2018-10-11 10:52:07 +02:00
Trevor Bramwell 7f51d01631
Fix 'block-level' Build Blocker Plugin Property
In the process of taking advantage of 'convert_mapping_to_xml()',
commit:7ebe78979166e36a038a116788c33383878ced20 renamed 'block-level' to
'blocking-level' in the build-blocker property.

Another unrelated commit modified the test to use 'block_level' instead
of 'block-level'.

Change-Id: I2dd642ec4966c4c48e0a35e986a69b3b74803358
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2018-10-09 19:37:10 -07:00
Zuul 21d902a633 Merge "docker-container: Improve support for more options" 2018-09-22 16:14:29 +00:00
tanhengyeow f3f2e3ea58
docker-container: Improve support for more options
Change-Id: I261959adcbba235f38fe4ac32b39a88ae96f636f
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-09-21 18:21:20 +05:30
Arne Luehrs 8f1ade81ce Enable groovy sandbox for properties-inject
The groovy-plugin has introduced with it's 2.0 release on April 10th 2017
the notion of SecureGroovyScript with the associated sandbox for groovy code
To enable JJB jobs relying on the sandbox groovy execution we need to enable
the expected SecureGroovyScript XML stanza.

When used with the groovy 2.0 plugin this will
enable the following JJB YAML stanza

  properties:
    - inject:
        groovy-content: test groovy-content location 004
        groovy-sandbox: true

Needed for groovy code sandbox mode

This implementation is the same as the wrapper implementation in
jenkins_jobs/modules/wrappers.py L949- L989

Change-Id: I93e890a7a0496520246532adbdfd84e3be746abf
2018-09-17 22:33:48 +02:00
Zuul 8ab1c56b09 Merge "build-blocker: Refactor to increase code quality" 2018-08-21 06:48:30 +00:00
tanhengyeow 2d80dd00d4 branch-api: Support skip-rate-limit param
Change-Id: I4d86b24519381cc76e669f89d8e313f9c30ad999
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2018-08-16 22:20:07 +08:00
tanhengyeow 52f5e99ff8 build-blocker: Refactor to increase code quality
Change-Id: I9e2e291c0a99e3fe01dacd0744752fe398b1938a
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2018-08-16 22:00:00 +08:00
akulakhan e9702144be Add matching parameter to throttle concurrent jobs
Change-Id: I6d211508d774df2312942d56a840bf311bb455d4
Co-Authored-By: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2018-08-01 23:35:25 +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
Randy Coulman 14ac6e9850 Access priority sorter plugin info via short name
In [version 2.0](8f2ae302bd)
of the priority sorter plugin, the long name of the plugin was renamed
to "Jenkins Priority Sorter Plugin", which broke the `priority_sorter`
function in the `properties` module.

The short name did not change, so we now use that instead to ensure
that we generate a configuration that matches the latest required by
the plugin.

Change-Id: I89a8fdabeac63ea482b3b1bd8ddf2dd83c1c7435
Task: 3112
Story: 2000655
2018-06-21 12:11:33 -07:00
Zuul f498ef4b2e Merge "Missed Replay property of authorization matrix" 2018-05-22 11:27:09 +00:00
John Fragoulis 5e5baa114f Support version 2.0 and greater of the Priority Sorter Plugin
The Priority Sorter Plugin changed the xml specification after 2.0. The commit
reflects that change but also keeps support for version 1.0.

References:
[1] https://storyboard.openstack.org/#!/story/2001534
[2] https://wiki.jenkins.io/display/JENKINS/Priority+Sorter+Plugin

Change-Id: I2f861265dfa64cde930c6a8e66c967bf1e6fc831
Closes-Bug: 2001534
2018-02-14 12:51:26 +02:00
Dmitry Burmistrov 62b26140af Missed Replay property of authorization matrix
Add support for Run.Replay property of authorization matrix

Change-Id: I1101c6a15a7e9704a3eccf8f194da6280e54d172
2017-09-23 11:12:00 +00:00
Yolande Amate 3e44a52336 Add support for the Branch API Plugin
Change-Id: I3ed06a4ef957cb088bda8b9a5881d642f68cbe3d
2017-08-16 02:34:31 +01:00
Bracken Dawson e4f047895c Add support for the Jenkins Docker Plugin's..
..job configurations.

Change-Id: Id29d6e877830e43ca06dde367fc3ca93c85866b6
2017-07-17 19:04:52 +01:00
Jenkins 7f275c3236 Merge "properties: cover lockable-resources plugin" 2017-03-28 19:03:05 +00:00
Kyrylo Shatskyy 231fcf8c46 Add support for 'Groovy Label Assignment Plugin'
Change-Id: I7978fc4997335fa6d756c24d40ed516698507d60
2017-03-16 19:12:06 +01:00
Alexander Evseev 273f2128fe Add the Slave Prerequisites properties plugin
Add support for the Slave Prerequisites Plugin
(https://wiki.jenkins-ci.org/display/JENKINS/Slave+Prerequisites+Plugin)

Change-Id: I98e854ab3ab7cdbe1563b6b38b7fc4d661edcd11
2017-03-07 12:09:23 +03:00
Jenkins 88ca8479f9 Merge "Add GitBucket plugin support" 2016-10-21 11:20:47 +00:00
Jenkins fd3026344b Merge "Update rebuild plugin to use convert xml" 2016-10-21 11:18:22 +00:00
Jenkins 3062a8b2d2 Merge "Add display-name option to github plugin" 2016-10-21 11:16:46 +00:00
Lukas Bednar d8813d1ddc properties: cover lockable-resources plugin
Change-Id: Ia53321bb535fcea697ba685c279f3dcb6a8e9846
Signed-off-by: Lukas Bednar <lbednar@redhat.com>
2016-09-23 16:23:53 +02:00
Darragh Bailey 4573b3a25d Refactor base test classes inheritance for reuse
Refactor base test class inheritance to allow for BaseTest class to be
reused without needing to also import the TestCase class everywhere in
order to avoid having the common test function executed on base classes.

This makes it easier to build base testing classes and then simplifies
the subclassing of these for actual tests.

Change-Id: I89809e8082469f814f245db4a9ab7658aac8a405
2016-09-14 14:58:57 +01:00
Kien Ha 00f7a3f3b7 Add GitBucket plugin support
Change-Id: I2a9fda9a91e382a65119a719655edd4ca340aa8c
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-08-30 14:31:12 -04:00
Kien Ha 956f0ce4f8 Update rebuild plugin to use convert xml
- Rename test file to be more descriptive
- Add minimal test file
- Add plugin="rebuild" attribute
- Add plugin desciption to doc

Change-Id: I466d8fed4c4167b9693ae3bb369611ef4b63e318
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-08-26 19:52:46 -04:00
Kien Ha b01fb482ce Add display-name option to github plugin
- Rename test file to be more descriptive
- Add full test file
- Add plugin="github" attribute
- Update plugin to use convert xml

Change-Id: I579248edbab73bda8a5ab8afc11805ac61e049b4
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-08-26 19:48:29 -04:00
Kien Ha 673927e5e9 Update Delivery Pipeline plugin to use convert xml
- Add plugin="delivery-pipeline-plugin" attribute
- Rename test files to be more descriptive

Change-Id: I9db5315e425da6bd5c69b533c79d6d5ab4ed1e70
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-07-27 22:01:34 -04:00
Jenkins 6c9d8ccb0c Merge "Properties: fix copyartifact permissions with several projects" 2016-07-01 14:54:09 +00:00
Lucas Dutra Nunes 5548ac51d7 Properties: fix copyartifact permissions with several projects
The copyartifacts property on Jenkins requires that the config XML
provide an string element for each allowed project. On JJB the
documentation says that the projects needed only to be comma-separated,
however JJB is not doing the job separation.

Parsing the projects string, spliting it by commas and then adding it to
a different string element solves this.

Change-Id: I59d8b2c070f28df4cfa9da0ab58f2c57e4243384
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
2016-06-28 17:48:53 +00:00