81 Commits

Author SHA1 Message Date
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
Somay Jain
54554db531 Adding support to monitor folders using FS trigger plugin
Change-Id: I04d84b1ad7c32ed36d86a04a33c3d5afee73fd86
2015-08-09 20:21:31 +05:30
Jenkins
3f75881ae1 Merge "Adding support for IvyTrigger Plugin" 2015-07-29 23:00:12 +00:00
Somay Jain
887c930cdc Adding support for IvyTrigger Plugin
Change-Id: If2dca3ea7e8287e372d171f0ca90151057696739
2015-07-18 21:54:55 +05:30
Jenkins
47fd0f4bb3 Merge "Add support to reverse trigger for job list" 2015-07-13 20:02:42 +00:00
Somay Jain
71a242cbd9 Added support for groovy script trigger
* Support for configuring all options for polling with a groovy script.
* Added script-file-path in bash script trigger documentation (support
was present in code but not included in documentation)

Change-Id: Ide3ccbb585644c2d89daa46d8eccf79fbba93f96
2015-07-10 19:18:22 +05:30
Somay Jain
cbf1f1b66a Support for more options in gerrit plugin and doc cleanup.
Following options are added -
* Other jobs on which this job depends
* Notification Level
* Unsuccessful Message File
* Silent Start Mode

Gerrit docstring cleanup for better indentation.

Change-Id: I2d0988973dcdd7ff32e7cdcd2c2676da3235e7fc
2015-06-29 18:59:41 +05:30
Thanh Ha
833fa2b928 Add support to reverse trigger for job list
Listing jobs as a comma separated list is fine with small amounts of
jobs however when this list gets too long it can be difficult to
maintain.

This patch adds support to list jobs as a list and the code will
automatically change it to a python separated list. Also retains support
for the old style comma separated list.

Change-Id: I0a419bb1f2ec83979f46990430f874381680cac8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-06-27 06:37:58 -07:00
Jenkins
e499da1945 Merge "Enable whitelisted-orgs-as-admins for ghprb trigger" 2015-02-22 03:23:52 +00:00
Jenkins
d2b1ab8a87 Merge "BugFix: pollscm trigger docs & unittests" 2015-02-22 03:22:07 +00:00
Igor Belikov
91aab94c1b Add 'readable-message' parameter to gerrit trigger
Adds ability to keep base64 encoded gerrit trigger
variables (such as commit message) in human readable
format.

Change-Id: Ie96d633ab9dc96dacf859409fd649bd981f9eb7c
2015-02-19 08:45:42 +03:00
Barnaby Court
6033c80457 Enable whitelisted-orgs-as-admins for ghprb trigger
Adds support for having all members of a
whitelisted organization automatically have
admin rights for the github pull request builder
trigger.  Details on this functionality can be found
at https://wiki.jenkins-ci.org/display/JENKINS/
GitHub+pull+request+builder+plugin

Change-Id: Ieca5a789a79d1ad91783fcd4608d26a8d6d61878
2015-02-18 18:40:27 -05:00
Jenkins
2b433fe572 Merge "Enable whitelisting branches with pull request builder" 2015-02-18 22:29:36 +00:00
Ilia Meerovich
9715afed5c BugFix: pollscm trigger docs & unittests
Change-Id: Icb70e45dbdce1434329ae0167367a5497920c8d5
2015-02-10 13:24:19 +01:00
Thanh Ha
7447292b57 Add support for new patchset-created exclude fields
New exclude features added to Gerrit Trigger plugin version 2.12.0.

Exclude Features:
  - Drafts
  - Trivial Rebase
  - No Code Change

This patch still supports the old trigger non-dict format yaml config:

	- patchset-created-event

Using the old configuration (non-dict) works in the new Gerrit Trigger
v2.12.0 as well as the previous versions.

In addition the newer configuration (dict) format also works in old
<2.12.0 and new >2.12.0 versions of Gerrit Trigger.

Added additional unit tests to verify old and new formats working.

Change-Id: I923b0be47085dc50da48f5ed271a13eae7e1dfa0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-02-06 10:57:00 -05:00
Barnaby Court
90c97fd3b3 Enable whitelisting branches with pull request builder
Adds support for specifiying the specific branches that will be
monitored by the github pull request builder.  Details on this
functionality can be found at
https://wiki.jenkins-ci.org/display/JENKINS/
GitHub+pull+request+builder+plugin

Change-Id: If98ce3ca037d3ce33506cf1ffea372e7c18eefda
2015-01-28 08:54:04 -05:00
Thanh Ha
58b9fd9ca6 Add support for Gerrit Trigger Comment Contains Expression
Change-Id: I229c7fc2fac540a6fe3209221ca01dcf6dd068df
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2014-12-11 10:38:03 -05:00
Jaroslav Henner
3b3bb47a98 Allow multiple comment-added events in gerrit trig.
In order to be able to react on multiple verdict categories (for example
Verify +1, Review +2) with one job, we need multiple definitions of
trigger-on events of the same-kind (comment-added-event). This was not
possible with the previous structure of event definitions.

The new yaml structure definition also better reflects the XML structure.

Change-Id: Idec0f2b07479c0611497126e984c13adf543ffc0
2014-12-11 16:24:26 +01:00
David Caro
e0509e97d1 Added notbuilt-message option to gerrit trigger
It was not there for some reason, just added it.

Change-Id: Ica85183656a5cc8e427837efeb0b961f0633c74a
Signed-off-by: David Caro <dcaroest@redhat.com>
2014-10-31 18:29:40 +01:00
Pavel Sedlák
7fc8758441 Allow configuration of Topics for Gerrit trigger
Gerrit trigger in addition to project name, branch and
file-path also supports when-to-trigger limitation
based on topic of the change, this adds support for that.

Change-Id: Icfcb3f02903a61294d23dd53308287a67927c777
2014-08-21 15:29:34 +02:00
Randy Coulman
88d3f2b399 Add support for URLTrigger plugin
Change-Id: Ibc96b3ecd65afb27398328f2b6220c32a800f3e6
2014-08-02 07:21:42 -07:00
Jenkins
5939c4eed5 Merge "Add support for reverse build trigger" 2014-07-22 15:49:11 +00:00
Christian Hofstaedtler
41af1b9e98 Add Gitlab Merge Request trigger
Change-Id: Ic068cf7e89be76f0f9e9187caf628fa49d7bd7fd
2014-07-15 14:10:29 +02:00
João Cravo
57501a94f3 Add support for reverse build trigger
Change-Id: I06d9969df0e9edfca2a2b433e2a13e3bc10c8b2c
2014-07-10 11:10:47 +01:00
David Pursehouse
aef2d27dce Add support for triggering on unreviewed patches
Since version 2.11.0 the Gerrit Trigger Plugin can be configured to
generate patchset-created events for changes that were uploaded while
the connection to Gerrit was down.

Change-Id: I59608e4f01355944fed9e44b288fc25a897950c7
2014-05-12 06:59:20 +00:00
David Pursehouse
3d1f134b45 Add support for multiple Gerrit servers in Gerrit trigger
Since version 2.11.0 the Gerrit Trigger Plugin can be configured
to trigger on more than one server.

Change-Id: I2082c5cfd14cd2494e2a7192beeb4909552cb7f6
2014-04-21 09:27:17 +09:00
David Pursehouse
bb2a4effa4 Allow to specify multiple branches per project in Gerrit trigger
Allow to specify multiple branch patterns in a 'branches' block
within the 'project' block.

If no 'branches' block is present, fall back to using the single
branch specified directly in the 'project' section.

If a branch is specified both at the project level, and in the
'branches' section, ignore the one at project level.

Closes-Bug: #1302502
Change-Id: I1fb2ce0bb3776d365f2c0e98a703c6dfba5fac7f
2014-04-17 12:25:08 +09:00
Jaroslav Henner
9c2e6d23ba Add script trigger.
Change-Id: I191f8f444f810cf4fe1fb9475aafc747e5dff68d
2014-02-07 15:17:17 +01: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
Kei YAMAZAKI
4d0b78d3bf Fix GitHub pull request builder plugin support
Change-Id: Iac1d06be91b641f7fccfe2255247443363ba2e80
2013-12-08 00:41:06 +09:00
Khai Do
b790bbc681 update doc and add new JJB unit tests
Add documentation on how to generate documentation and run JJB unit tests.

Also added a unit tests for each category of plugins as examples for others
to follow when adding new JJB plugins.  I'm hoping this will help contributors
add tests for new plugins going forward.

Change-Id: I2ab90cdb37d0f3b1e947345d4291d2927b04a0c6
2013-11-22 17:51:17 +00:00