804 Commits

Author SHA1 Message Date
Darragh Bailey
fd82f48a84 Argparse is required for JJB to parse arguments
Move argparse requirement from tests to install requirements as it is
required when using JJB.

Change-Id: If503ebfe790c904f77ef45b59ea909a2577db5cd
2014-07-27 00:49:51 +01:00
Antoine Musso
ab434cc288 Revert "Allow using template variables in "defaults" field."
This reverts commit 70ed22362a9c13ea9f3165e5747dcca281ad439c.

I knew I should have tested the patch with my own templates. Doing so I
discovered a nasty regression:

The defaults can make use of variables passed by the project. By moving
applyDEfaults to be called after deep_format is performed on job
templates, any substitutioncontained withing defaults is no longer
correctly replaced by project parameters.

Change-Id: I69ffb3e28093af6db62962786d9275bf3ba4e115
2014-07-24 15:54:07 +00:00
Jenkins
442d5c8a2c Merge "Show usage of job-group" 2014-07-23 16:27:57 +00:00
Jenkins
5939c4eed5 Merge "Add support for reverse build trigger" 2014-07-22 15:49:11 +00:00
Jenkins
fdce8b8ee1 Merge "Specify logging string format arguments as function parameters" 2014-07-22 10:50:44 +00:00
Jenkins
ef016d5601 Merge "add logfilesize plugin support (doc, tests)" 2014-07-19 06:12:28 +00:00
Vitaliy Lotorev
97a3e75e7e add logfilesize plugin support (doc, tests)
Change-Id: I3349668420d7216b1f8ecf0a539eb944d0dd69be
2014-07-19 00:42:14 +04:00
Jenkins
66a4faa22f Merge "tests for JJB command processing" 2014-07-18 01:30:18 +00:00
Jenkins
a9d16eabb4 Merge "Add Gitlab Merge Request trigger" 2014-07-16 14:18:09 +00:00
Christian Hofstaedtler
41af1b9e98 Add Gitlab Merge Request trigger
Change-Id: Ic068cf7e89be76f0f9e9187caf628fa49d7bd7fd
2014-07-15 14:10:29 +02:00
David Pursehouse
286a9b660e Specify logging string format arguments as function parameters
Change-Id: If34129e03867b342e5ea5f1d02dc7ab5b0830142
2014-07-15 14:50:18 +09:00
Darragh Bailey
f89fac42cf Show usage of job-group
Make sure the example referenced in the documentation for ``Job Groups``
actually makes use of 'job-group'.

Change-Id: Ib78bdb459db23f57093c1fd4a6dd74a5080dc239
2014-07-12 20:58:27 +01:00
Jenkins
0af8f2f2a7 Merge "Support the Store SCM plugin" 2014-07-11 11:09:06 +00:00
Jenkins
4e2e22959f Merge "Add support for Managed Script Plugin" 2014-07-10 16:36:49 +00:00
Randy Coulman
1dc925acd9 Support the Store SCM plugin
Change-Id: I9525a29e54f157c90cf98eb7f351b56d063d87dd
2014-07-10 09:36:44 -07:00
Jenkins
8356a907ae Merge "Change default Reply-To header to $DEFAULT_REPLYTO." 2014-07-10 16:25:16 +00:00
Jenkins
7204ec3130 Merge "multijob: added kill-phase-on option" 2014-07-10 16:18:07 +00:00
Jenkins
b0d117a404 Merge "Document the Zuul triggers" 2014-07-10 16:10:51 +00:00
João Cravo
57501a94f3 Add support for reverse build trigger
Change-Id: I06d9969df0e9edfca2a2b433e2a13e3bc10c8b2c
2014-07-10 11:10:47 +01:00
Khai Do
1df929c58a tests for JJB command processing
Add a few tests for JJB command processing.  This is just to get
started I'm hoping more will come.

Change-Id: Iff964af025f6a3d7ba4acd91b1e0242285a11bc3
2014-07-09 08:55:10 -07:00
Dzmitry Horbach
15282bdd3d Add support for Managed Script Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Managed+Script+Plugin

Change-Id: Ic37f02886f242f5ff31a7421e699b85227c5264f
2014-07-08 13:44:05 +03:00
João Cravo
04139e0f5e Add support for builder Groovy and System Groovy
Closes-Bug: #1251869
Change-Id: Ibc49e1aca7b33eb9c0c21472a924cb375069ee51
2014-07-07 17:39:07 +01:00
Randy Coulman
5374e3c54b Change default Reply-To header to $DEFAULT_REPLYTO.
See also https://issues.jenkins-ci.org/browse/JENKINS-17733.

Change-Id: I97c2f2824a8fa74f6387301d29594c59cd73a45a
Closes-Bug: 1290382
2014-07-07 08:09:37 -07:00
Antoine Musso
965fdc2379 Document the Zuul triggers
The zuul and zuul-post had sparse documentation, improve it a bit and
point to upstream documentation at:
http://ci.openstack.org/zuul/launchers.html#zuul-parameters

Add a note that Zuul 2.0 (gearman based) no longer requires those
parameters to be explicitly defined.

Change-Id: I1edcd5c3a101e2afe0025ad4cd3e511582998999
2014-07-07 15:10:19 +02:00
Jenkins
e1ddd23483 Merge "Allow using template variables in "defaults" field." 2014-07-07 10:11:26 +00:00
Jenkins
d833015640 Merge "refactor cmd processor to make it slightly easier to test" 2014-06-30 09:11:33 +00:00
Joao Vale
70ed22362a Allow using template variables in "defaults" field.
Change-Id: I876ab7fa61258e84b00a67325aeb9234aff8fa62
2014-06-27 18:09:20 +01:00
Jenkins
09729852f9 Merge "removed job configuration duplication in docs" 2014-06-27 12:11:21 +00:00
Lukas Bednar
fa8ae1c60f multijob: added kill-phase-on option
this option allows terminate job phase on specific status of job

Change-Id: I5984fb2494120afc97140c1ae38635301e8f1376
Signed-off-by: Lukas Bednar <lbednar@redhat.com>
2014-06-27 14:08:43 +02:00
Jenkins
fe693157cc Merge "Patch writexml for non standard XML DOM implementations" 2014-06-25 18:13:07 +00:00
Jenkins
015f084bee Merge "Fix a broken include in the configuration documentation." 2014-06-25 17:56:38 +00:00
Jenkins
d5993f10cb Merge "Fixed referenced before assignment in zuul module" 2014-06-25 17:55:35 +00:00
Jenkins
f0de64a1a2 Merge "Use yaml local tags to support including files" 2014-06-25 17:50:11 +00:00
Jenkins
e9db73d2b3 Merge "Make 'keep_descriptions' fully optional" 2014-06-23 18:56:14 +00:00
Jenkins
eef226d370 Merge "add presend-script to email-ext" 2014-06-23 18:47:16 +00:00
Darragh Bailey
6d311095ef Fix ant builder definition in complete test
Change-Id: I8f6041c0aa2b7a24d2dc8ed73b2719c332b869e6
2014-06-21 21:57:27 +01:00
Darragh Bailey
3e3996d32a Use yaml local tags to support including files
Add support for local tags which are application specific to allow
including of other yaml files or code from scripts. Allows for code to
be maintained and tested as seperate files, as well as reduces
duplication of yaml code that cannot be macro'ed or easily templated by
including it from a common file.

Adds support for the following tags:
  'include' - load file as yaml code
  'include-raw' - load file as data (for scripts)
  'include-raw-escaped' - load file as data with escaping braces '{}'
      as default for use with job-templates

Use configuration file options to provide a search path for the files.

- Test behaviour of yaml tags independent of any XML generation
  by comparing json result of yaml parsing to verify that certain
  tags do/don't recall the yaml.load() method.
- Add examples for the include tags via addition tests for YamlParser
  class

Inspired by
http://stackoverflow.com/questions/528281/how-can-i-include-an-yaml-file-inside-another

Change-Id: Ib90a07043112d4739d6529ceddbc9817668bcec0
2014-06-20 23:16:23 +01:00
Darragh Bailey
18a07f1077 Make 'keep_descriptions' fully optional
Avoid the need to set the keep_descriptions option under the job_builder
section if providing any configuration options.

Change-Id: I0436a36e9f5ad7ff68ff5b92868ca1b13d019f11
2014-06-20 21:56:35 +01:00
David Pursehouse
731615c9f9 Consistency updates in documentation
Change-Id: I0096348488371c37c0ba645f0bd3d385975ef7d2
2014-06-20 11:41:40 +09:00
Khai Do
f62c568fa4 refactor cmd processor to make it slightly easier to test
* make logger global
* create methods for setting up of parser and jjb configuration.

Change-Id: Ia8d16e74e8a1097a013512fb624f032b1d085d17
2014-06-19 10:55:34 -07:00
Jaroslav Henner
53022c70e7 add presend-script to email-ext
Change-Id: I388dd2f5ce8aa6ac323f73409dec1003a3f423cb
2014-06-19 11:06:39 +02:00
Jenkins
463c84f055 Merge "Adding second failure option to the email-ext module" 2014-06-19 09:05:06 +00:00
Florian Preinstorfer
7cab474680 Fix a broken include in the configuration documentation.
Change-Id: I803caea42365e44851068e510d5e698447aad73b
2014-06-18 11:55:08 +02:00
Jenkins
416ee7dcd3 Merge "re-arrange docs for clarity" 2014-06-12 01:52:19 +00:00
Jenkins
0691cfa1d2 Merge "remove misleading jjb example" 2014-06-11 19:24:01 +00:00
David Johansen
d1aecb185d Adding second failure option to the email-ext module
Change-Id: I288289e8227c3408f40f0e8272573d20e022ae70
2014-06-11 11:42:25 -04:00
Jenkins
de43eaddf7 Merge "Support variable-specific substitutions in templates." 2014-06-11 09:27:37 +00:00
Jenkins
83a54ac7a2 Merge "matrix project: add support for dynamic axis" 2014-06-11 09:05:14 +00:00
zaro0508
b38c5e46ac re-arrange docs for clarity
The info on using list and dict as parameters seemed a little too advanced
to be in the description of 'templates'.  This change moves this example into
a newly created 'advanced' configuration section.

Change-Id: I98b80233c45ac721819360743dcae5e82c63ecbf
2014-06-06 09:55:47 -07:00
Khai Do
2d1494d3a3 remove misleading jjb example
Change I059f38d0aa8a8947aaac75e0ddb34d392063ece3 added support for
passing parameters to jobs in groups but not for variable substitution
on those parameters. Substitution on job list parameters would
be a new feature. This change removes a misleading parameter subsitution
example.

Partial-bug: #1298568
Change-Id: I18e28bb622f0473f049963ce6dcf6c4efd11dc2c
2014-06-06 09:30:17 -07:00