51 Commits

Author SHA1 Message Date
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
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
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
Christian Fetzer
0d4d20742a Add support for GitLab notifier and connection property
Adds a gitlab-notifier publisher that allows to set the commit status
on GitLab. The GitLab connection is specified using a property.

Reference: https://github.com/jenkinsci/gitlab-plugin/pull/229

Change-Id: I45b4ec2e3c5ff08922270c5c0539d4ee2086a752
2016-06-16 07:11:00 +02:00
Tomas Bezdek
c2f72651d4 slack notifications on repeated failure
Change-Id: I248f279fb30865641c64db260cae9e2f95f4e9f7
2016-03-09 15:12:08 +00:00
Jenkins
8c03c692ec Merge "Add support for credentials properties in authorization matrix" 2016-03-09 13:13:30 +00:00
David Caro
1cf271a96e Adding the build-discarder property
This deprecates the logrotate generic element of the jobs, as it's not
supported anymore on jenkins>1.637, see:

    1cbbb23923

Change-Id: Ib086aef43e4833855b5827ad0ed3310e8db7d7b9
Signed-off-by: David Caro <dcaroest@redhat.com>
2016-03-02 12:17:45 +01:00
Jenkins
d36262728b Merge "* Added support for the Jenkins Slack plugin" 2016-02-29 21:22:08 +00:00
Michael Jeanson
97635cfbdd Add matrixOptions to throttle properties module
Change-Id: Id5021ed55a45ca951b9a24f5790f4a7313b1dff1
2016-01-21 14:43:14 +00:00
Benjamin Koep
7e02657f85 * Added support for the Jenkins Slack plugin
Change-Id: I0e8d81134d71191a6f0fa3a780f32a06f012969a
2016-01-13 16:12:18 +01:00
Arnold Bechtoldt
43b776225b
Add support for credentials properties in authorization matrix
- Re-organize permissions alphabetically
- Add job-status and job-move permissions

Change-Id: I8712a367122f6fadcaf62d4b4f144beab981bed8
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Co-Authored-By: Max Kovgan <kovganm@gmail.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2016-01-11 12:15:41 -05:00
Darragh Bailey
a796a593dc Standardize docstrings for properties module
Move remaining examples to unit tests, remove unnecessary '\' and align
docstrings to the predominate standard throughout the project.

Fix broken authenticated-build highlighted by the added unit test.

Change-Id: Ic9700f587073946be17be543920a4a3ed7cd19d0
2015-12-12 19:01:10 +00:00
Guido Günther
65b868a0b6 delivery-pipeline: support task description template
as documented in

    https://github.com/Diabol/delivery-pipeline-plugin/pull/138

Change-Id: Ic6d7e54ea55c235deeb80240bb5c10e84bcff30d
2015-12-11 08:45:14 +01:00
Tomas Bezdek
86374bab15 Add support for Rebuild Plugin
Change-Id: I3b23dbf66d211797af8735f211df9509eac95a3d
2015-11-10 21:42:52 +00:00
Joao Vale
1fa03d658d Add new parameters to Build Blocker example / test.
Change-Id: I328b9b2cedcf7f459ff3cbd3940db950e38e4fc0
2015-09-14 17:54:06 +00:00
Joao Vale
f47851612a Add support for blocking-level and queue scanning to Build Blocker plugin.
Change-Id: I0d2b2cc4a52ec47c101921a4a69c93b747f2ff5d
2015-09-03 16:50:19 +01:00
Darragh Bailey
e5738d0852 Allow whitespace to be significant
Remove the test options suppressing ignoring differences in whitespace
outputted in the XML to allow capturing of issues where the code
incorrectly adds or removes significant whitespace.

Add a helper function to deal with the edge case of parsing XML directly
that contains non significant whitespace to avoid accidentally adding
excess whitespace when minidom outputs the resulting document.

Change-Id: I9936042cd82c204ba2b3c19f575703e33564f7fd
2015-08-11 18:31:48 +01:00
Holger Levsen
d1e4168594 Adding support for Sidebar Plugin
<https://wiki.jenkins-ci.org/display/JENKINS/Sidebar+Plugin

You can find the original version of this patch here:
  c5ea266856

Update to the original author's patch is limited to moving the one line
from setup.py to setup.cfg, fixing some pep8 errors, and adding a unit test.

It is being submitted upstream with Holger's approval, because he doesn't
have the time available to do it himself.

Change-Id: I75ffedeaafab3aea4eb1b172a980d625669fdacc
Co-Authored-By: Philip Hands <phil@hands.com>
2015-07-10 21:41:44 +01:00
Ilia Meerovich
687d9f94eb Adding unittest to ownership property
Change-Id: I800001c651ed7db7e0c865e8f859e2d80cbc42e2
2015-06-15 11:00:08 +03:00
David Pursehouse
cfef27280b Add support for "Override Build Parameters" option in EnvInject
Change-Id: I4f0c9949f1141ccf93ea86d6cdaec6cce7e6ac4d
2014-10-22 12:26:19 +08:00
David Pursehouse
9ca0e3c2a6 Add tests for properties inject
Replace hard-coded inject example with a literal include. Extend the
example to show how to pass two environment variables.

Add test fixtures for the keep-system-variables and keep-build-variables
parameters.

Change-Id: Ie3b5af2c38f8dde5ff739b9f6b213c1e94387aca
2014-10-22 12:25:52 +08:00
Fathi Boudra
c6c81a2965 authorization property: add extended read support
This authorization requires the extended read permission plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Extended+Read+Permission+Plugin

Include test for the authorization properties.

Change-Id: I9364524398f4e3f0d6ccccd88d5046e7504e2123
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-06-02 07:39:25 +03:00
Jenkins
eead2784f6 Merge "Add support for Copy Artifact project copy permissions" 2014-04-09 16:08:17 +00:00
Jason Kincl
01ec946812 Add support for Copy Artifact project copy permissions
Since 1.30, Copy Artifact supports specifing the projects that are allowed
to copy artifacts for a given project in the general job properties.

Change-Id: I5a9de21f449e98d08ec9303d55021d6a661257d4
2014-04-09 08:06:13 -04:00
Benjamin Staffin
dd14a86a9b Add support for Slave Utilization plugin
Change-Id: I4243fddf2f08a09671757b503fae2a890f2d820e
2014-03-28 01:33:59 -07:00
Sergey Kolekonov
7d11c704ef ZMQ Event Publisher plugin support added
This is a Jenkins plugin that will publish Jenkins Job run events
(start, complete, finish) to a ZMQ PUB socket.

Change-Id: Id238033796e6905e18a777fc85c789ff6cf4f59d
2014-03-12 06:50:00 +00:00
Patrik Boström
b4b0b9d9ab Added support for Delivery Pipeline Plugin
Change-Id: I54cfa9153700e141d8ba78c881998553b8081658
2014-02-26 17:14:35 +01:00
Jenkins
07fa712f50 Merge "Added support for least load plugin." 2014-02-22 06:53:27 +00:00
David Johansen
69357d4e30 Added support for least load plugin.
Change-Id: I0c0c9a23e97101f34f144f63e8f9a81f1ac172f9
2014-02-20 01:14:51 +00:00
Sergey Kolekonov
53c41a0e5f Heavy Job Plugin support added
This plugin allows you to define "weight" on each job,
and making each job consume that many executors

Change-Id: Iee49229b0d3c909f320caa9bd6c1ebb6bc37ddcb
2014-02-13 13:09:30 +04:00
Kei YAMAZAKI
321fa47ef6 Added support for Builds chain fingerprinter
Change-Id: I11429534a82587e7cbbd987ecce148b07a5ace47
2014-02-02 15:37:38 +09:00
Kei YAMAZAKI
604d39305b Fix multibyte character problem
Fixed problem that causes a UnicodeEncodeError when use multi-byte characters in the job.yml.

Change-Id: Ie715c827a794e73fae11cdca079ea80cfb8c280d
2014-01-21 22:34:30 +09:00
Jaroslav Henner
2cad551ce5 Add support for batch_tasks.
Change-Id: I6cb6050322f07e90eadff88acab61c9ed66221fe
2013-12-04 23:19:11 +01:00