781 Commits

Author SHA1 Message Date
João Cravo
57501a94f3 Add support for reverse build trigger
Change-Id: I06d9969df0e9edfca2a2b433e2a13e3bc10c8b2c
2014-07-10 11:10:47 +01: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
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
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
Fathi Boudra
c5d3e71cca matrix project: add support for dynamic axis
This axis requires the dynamic axis plugin:
https://wiki.jenkins-ci.org/display/JENKINS/DynamicAxis+Plugin

All the dynamic axis plugin settings are in the core project:

<matrix-project>
  <axes>
    <ca.silvermaplesolutions.jenkins.plugins.daxis.DynamicAxis>
      <name>config</name>
      <values>
        <string>config_list</string>
      </values>
      <varName>config_list</varName>
      <axisValues>
        <string>default</string>
      </axisValues>
    </ca.silvermaplesolutions.jenkins.plugins.daxis.DynamicAxis>
  </axes>

The plugin sets 2 values: axis name and variable name.
The axisValue element is hardcoded to 'default' in the plugin, so we do
the same in Jenkins job builder.

The matrix project supports multiple axes configuration, including dynamic
axis.

Tests added for:
 * dynamic axis (by itself)
 * multiple axes (dynamic and user-defined axes)

Tested on Jenkins LTS (1.554.2) with both the plugin installed and not
installed. The plugin is properly ignored in the latter case.

Change-Id: I36310bc512fd873fec4bd5f42937689fd178536e
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-06-06 11:02:39 +03:00
Khai Do
d96d351868 removed job configuration duplication in docs
The same job definition and examples were in both general.rst and
configuration.rst.  Moved the contents of general to configuration.

Change-Id: Iefdf1b6ac3b9679a8af4451710442bf58054d790
2014-06-05 11:16:01 -07:00
Fathi Boudra
4f403ca884 ssh publisher: add always-publish-from-master support
Allow to SSH from master, instead of hardcoding to false.
It's particularly useful when the SSH credential are only
stored on the master. Default is kept to False.

Change-Id: I365cad043d30b6b290828a24635322c7f5afc35e
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-06-05 20:30:10 +03:00
Jenkins
3696fdaba2 Merge "reference tests as examples" 2014-06-04 20:52:50 +00:00
Jenkins
428a2369bb Merge "authorization property: add extended read support" 2014-06-04 18:07:38 +00:00
Jenkins
f61b654c85 Merge "update URL references to project." 2014-06-04 09:50:51 +00:00
David Caro
dcb29a8c77 Fixed referenced before assignment in zuul module
It was using a non-defined url variable and failed to me when running a
simple jenkins-jobs test -o ../outdir .

Change-Id: I56e6376de4972ea0f64bd8c81d6eb6d8f7f6d497
Signed-off-by: David Caro <dcaroest@redhat.com>
2014-06-03 07:41:54 +00: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
Khai Do
f594fb5c7c reference tests as examples
Remove samples and reference the tests as examples instead.

We don't need these samples for two reasons:
1. It is already duplicated in either JJB tests or documentation.
2. We don't test these samples so they may become outdated (some already have).

Change-Id: If1ba6cc8a675091e740fa254951bb8fcbcee6903
2014-05-29 09:30:49 -07:00
Jenkins
e07f6e7e69 Merge "Add tox "coverage" target" 2014-05-28 18:50:33 +00:00
Jenkins
24ce90ea84 Merge "Fail if specified set of defaults is not found." 2014-05-28 01:49:57 +00:00
Marc Abramowitz
b33ac74828 Add tox "coverage" target
Change-Id: I577d62e016a550ea30671837a0a426165984e982
2014-05-27 16:50:34 -07:00
Lukas Bednar
34ea32ba80 scms: MultiSCM is generated for scms hidden in macro
This patch fixes problem with generating MultiSCM in case that scms are
encapsulated in macro.
This patch includes simple tests to cover if-branches for this change.

Example:

- scm:
  name: xxx
  scm:
    - git: ...

- scm:
  name: yyy
  scm:
    - git: ...

- scm:
  name: xxx-and-yyy
  scm:
    - xxx
    - yyy

- job:
  name: my-job
  scm:
    - xxx-and-yyy

Change-Id: If3e7b3d19e51545a5623ee060fb7673a7a989233
Signed-off-by: Lukas Bednar <lbednar@redhat.com>
Closes-bug: #1285515
2014-05-26 17:49:04 +02:00
Khai Do
6eb31208fb update URL references to project.
github.com/openstack-ci was moved to github.com/openstack-infra
homepage references should point to git.o.o/cgit/openstack-infra

This change updates the above references accordingly.

Change-Id: I4d3591f228b10de050a129ae7af99485f50edab5
2014-05-22 11:23:17 -07:00
Jenkins
564953609c Merge "add overview info to pypi" 2014-05-21 22:55:33 +00:00
Jenkins
95be361ba9 Merge "Test creation of multiple jobs from templates" 2014-05-20 22:18:18 +00:00
Khai Do
5eb5bd1a9c add overview info to pypi
pypi is not showing info from README.rst. This change adds a reference to the readme
so that it will appear on pypi.org upon a release of jjb.

Change-Id: I13b8d003d358bc1398058bbdbb5bb984ead2679b
2014-05-20 10:39:44 -07:00
Jenkins
8ae49cc1b5 Merge "Add support for triggering on unreviewed patches" 2014-05-17 19:36:49 +00:00
Jenkins
bd8e5911c7 Merge "Fix typo: sigleton => singleton" 2014-05-16 17:58:20 +00:00
Jenkins
ad27fe00a0 Merge "Refactor the matches function" 2014-05-15 20:15:25 +00:00
Marc Abramowitz
b0d58bb13b Fix typo: sigleton => singleton
Change-Id: I7ef7b73b22d722663b4fa5dcd0d79db2a4ca24e4
2014-05-14 17:37:05 -07:00
Joao Vale
2de0e0e7df Support variable-specific substitutions in templates.
Change-Id: I6af84f48eaa4ee44c8d8babddd8d10a1e1095101
2014-05-12 15:03:10 +00: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