749 Commits

Author SHA1 Message Date
Jaime Flynn
07f14378b3 updated conditional_publisher to support plugin changes
Updated conditional_publisher to support the new XML format
 in the latest versions (>= 0.13) of the Flexible Publish plugin.
Ensured legacy format is still supported for plugin versions < 0.13.
Added support for multiple actions per condition with version >= 0.13.
Added unit test for multiple actions per condition

Change-Id: I4a91d2836ccd079d059b961a7f0b177a17df4093
2015-03-13 17:55:00 -05: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
Jenkins
74c8ac4561 Merge "Interpolate params inside of params." 2015-02-05 23:40:47 +00:00
Jenkins
bb179a0a5f Merge "Add support for JDK axis" 2015-02-05 04:58:54 +00:00
Wayne
b4e5aa9b77 Add plugins_info to module registry object.
This makes it available for use by any module that has version-specific behavior
differences since modules always have access to the yamlparser which in turn
contains a module registry.

Change-Id: I1cae480a9a341ec2f6062904c962530dfce95057
2015-02-04 05:02:14 -08:00
Jenkins
7c94d8d247 Merge "Add example to demonstrate flow plugin for job-template" 2015-02-04 12:50:09 +00:00
Jenkins
eee7f34b86 Merge "xUnit publisher: add support to CTest" 2015-02-04 12:45:05 +00:00
Jenkins
ceaf21d203 Merge "Add support for M2 repository cleanup plugin" 2015-02-04 03:19:12 +00:00
Jenkins
960d5c8524 Merge "Update SCM Git Clean configuration to use new extensions style" 2015-02-04 03:05:07 +00:00
Jenkins
d679033a1e Merge "Update SCM Wipe workspace to use extensions style" 2015-02-04 03:04:12 +00:00
Thanh Ha
7d44c58aa2 Update SCM Git Clean configuration to use new extensions style
Use the extensions style configuration for setting the SCM Git clean
configuration. With this format we deprecate the older (clean: bool)
configuration format and replace it with this format:

clean:
    after: bool
    before: bool

The older configuration is still supported so users who did not update
their YAML files can upgrade without updating all their YAML files first.

Change-Id: I1cfc0e2951c2b4de5e67bcb8abdf0b8c070e7fc6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-02-03 21:52:20 -05:00
Thanh Ha
d7c37c89a8 Update SCM Wipe workspace to use extensions style
Use the newer extensions style configuration for the SCM Wipe workspace
option. This change simply changes the output style of this
configuration leaving the original YAML configuration values in tact so
it is backwards compatible with the old style configuration for
wipe-workspace setting.

While this patch still sets the old <wipeOutWorkspace> value long with
the new extensions value. Jenkins appears to be happy with both values
present and prefers the extensions format if it exists. This should
allow the older Jenkins that only supports the older config format to
continue to work.

Change-Id: Ib5b1809d19a35f83f524ee84b18f0c58b851c70b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-02-03 21:49:57 -05:00
Jenkins
12ff698fe9 Merge "Update git-submodule configuration to new extension style" 2015-02-04 02:40:58 +00:00
Lucas Dutra Nunes
7fb2a64e05 xUnit publisher: add support to CTest
Adds support for parsing the output of the CMake test driver program on
the xUnit plugin, which was present since version 1.58.

Another fixture file was added to keep the data extraction based of the
current tests fixtures working.

Change-Id: I9be73b39c9034955f6224695cbd642f03deac2cf
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
2015-02-03 10:23:33 -02:00
Jenkins
c492c0b99b Merge "builders: add cmakebuilder plugin support" 2015-02-02 19:44:38 +00:00
Wayne
0a2e4ed961 Interpolate params inside of params.
This patch enables parameters to be expanded inside of other parameters. For
instance:

- job-template:
    name: '{value-stream}_{pipeline_type}_foo'
    builders:
        - shell: 'echo "I am foo job!"'
    publishers:
        - trigger-parameterized-builds:
            - project: '{downstream}'
              current-parameters: False
              condition: ALWAYS
              git-revision: True

- job-template:
    name: '{value-stream}_{pipeline_type}_bar'
    builders:
        - shell: 'echo "I am bar job!"'
    publishers:
        - trigger-parameterized-builds:
            - project: '{downstream}'
              current-parameters: False
              condition: ALWAYS
              git-revision: True

- job-template:
    name: '{value-stream}_{pipeline_type}_baz'
    builders:
        - shell: 'echo "I am baz job!"'
    publishers:
        - trigger-parameterized-builds:
            - project: '{downstream}'
              current-parameters: False
              condition: ALWAYS
              git-revision: True

- job-group:
    name: 'pipeline2'
    pipeline_type: 'p2'
    jobs:
        - '{value-stream}_{pipeline_type}_foo':
            downstream: '{value-stream}_{pipeline_type}_bar'
        - '{value-stream}_{pipeline_type}_bar':
            downstream: '{value-stream}_{pipeline_type}_baz'
        - '{value-stream}_{pipeline_type}_baz':

- job-group:
    name: 'pipeline1'
    pipeline_type: 'p1'
    jobs:
        - '{value-stream}_{pipeline_type}_baz':
            downstream: '{value-stream}_{pipeline_type}_bar'
        - '{value-stream}_{pipeline_type}_bar':
            downstream: '{value-stream}_{pipeline_type}_foo'
        - '{value-stream}_{pipeline_type}_foo':

- project:
    name: derp
    jobs:
        - 'pipeline1':
            value-stream:
                - experimental
                - staging
        - 'pipeline2':
            value-stream:
                - experimental
                - staging
                - production

Prior to this commit, the setup above was not possible because the `downstream`
defined as parameters to be passed to job templates in the job groups would not
have the `value-stream` and `pipeline-type` parameters interpolated. The
trigger-parameterized-jobs `project` value for each of the 15 jobs created with
this setup would all look something like `{value-stream}_{pipeline_type}_foo`
which does not actually point to any particular job.

The only way I was previously able to specify a downstream job with parameters
was to put the `{value-stream}_{pipeline_type}_foo` string directly in the
job-template which meant that job templates were statically bound to each
other--I had no reasonable way to re-order or easily select subsets of the jobs
at the job-group or project level as can be seen here in the difference between
`pipeline1` and `pipeline2`.

Change-Id: I26dfb112cd4842c40c3d561f8de89f7654a07b8f
2015-01-31 10:48:58 -08:00
Jenkins
7ba4f6060c Merge "fix project matrix doc rendering" 2015-01-29 19:00:58 +00:00
Teemu Suvanto
a322faefb7 Add support for JDK axis
Axis that selects available JDKs. JDK axis has the same XML
structure as other axes; only the element name changes.

The matrix project support was split out of core Jenkins into the
'Matrix Project Plugin', so update the docstring to mention that
this plugin is required.

Tested on Jenkins ver. 1.565.2 with Matrix Project Plugin 1.4.

Change-Id: I6b9d243810833bd3d31535439cc48768db5a6598
2015-01-29 10:12:27 +09:00
Lucas Dutra Nunes
7cb821e166 builders: add cmakebuilder plugin support
The cmakebuilder plugin is used to configure CMake builds to Jenkins,
being able to set several directories and variables related to CMake.

All the possible configurations for the plugin can be set with this
builder. Also included on this change are the documentation and two test
cases, one for common usage types and another more complete.

More information about the plugin can be found at:
https://wiki.jenkins-ci.org/display/JENKINS/cmakebuilder+Plugin

Change-Id: I3f62515d7dc2d3b6e5726ebe06c53e72de5cde90
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
2015-01-27 17:43:37 -02:00
Igor Belikov
cc96136a6e Add 'Enable condition' support to MultiJob builder
'Enable condition' is optional condition in groovy script
format to run phase job of MultiJob project

Change-Id: I1962d7f8dc2a3613e96654ba11e15f79f8193fae
2015-01-27 17:28:07 +03:00
Thanh Ha
09bd39fd64 Update git-submodule configuration to new extension style
The Jenkins Git SCM plugin now uses extensions style configuration. This
patch adds support for the extensions format and deprecates the old
format.

Change-Id: I3ef144473142e23de859f38501f3561875fb44bf
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-01-22 11:52:59 -05:00
Thanh Ha
5acdda5d85 Add support for M2 repository cleanup plugin
https://wiki.jenkins-ci.org/display/JENKINS/M2+Repository+Cleanup+Plugin

Change-Id: Ic45c3dde022e2e84b5b31d960d76c8ef1972ee05
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-01-20 14:56:56 -05:00
Khai Do
c8839c5671 fix project matrix doc rendering
Only one colon should precede the literalinclude

Change-Id: Id1bf144163f0b965bc404b600b08b3a1f348bb25
2015-01-12 11:17:00 -08:00
Jenkins
4bf020e07e Merge "add support for python and tox matrix project axis" 2015-01-12 15:48:56 +00:00
Kyle Rockman
f82ab9a021 add support for python and tox matrix project axis
Change-Id: I89ffc04faed02fd72c934b44b6832bd1f11d8f2e
Signed-off-by: Kyle Rockman <kyle.rockman@mac.com>
2015-01-08 14:13:40 -06:00
Praveen Kumar
4bddf4c6ee Add example to demonstrate flow plugin for job-template
Change-Id: I7bacce4f495989f8b37d6fc6b1bd773326e83b57
2015-01-06 09:07:34 +05:30
Jenkins
1d3af0f3ce Merge "deprecate postbuildscript onsuccess and onfailure parameter names" 2014-12-16 15:50:24 +00:00
Khai Do
90eceb7478 deprecate postbuildscript onsuccess and onfailure parameter names
The postbuildscript module's 'onsuccess' and 'onfailure' parameters
names were slightly confusing.  This change deprecates those parameter
names and replaces them with less confusing names.  The new names
are more closely matched to the ones that get added to the xml.

Change-Id: Ifb76129852816aa3f8ee6bb7f609a2344ccc7a69
2014-12-15 09:53:17 -08:00
Andrey Pavlov
b542685244 Add 'node' parameter to 'parameters'
This parameter defines a list of nodes where this job could potentially
be executed on. Nodes can be choosen from list of current available nodes.
Currently it trasforms to single-selection dropdown to choose a slave for execution.

Change-Id: I5379d20b94e3b33360ea8f842e3b4237b491addb
2014-12-14 10:32:39 +03:00
Jenkins
084eb8122f Merge "Add support for Config File Provider to Maven Project module" 2014-12-13 20:51:57 +00:00
Jenkins
abd9aa42f4 Merge "URL in Maven deploy is an optional field" 2014-12-13 20:48:27 +00:00
Jenkins
057037cc64 Merge "Add support for Gerrit Trigger Comment Contains Expression" 2014-12-13 20:45:45 +00:00
Jenkins
fe8269512b Merge "Allow multiple comment-added events in gerrit trig." 2014-12-13 20:40:17 +00:00
Jenkins
09825fffb8 Merge "Add Mercurial plugin feature to jenkins-job-builder" 2014-12-13 20:36:15 +00:00
Jenkins
bf7f5d299a Merge "add support to git for changelog against branch" 2014-12-13 20:34:08 +00:00
Jenkins
ef06231720 Merge "adding support for the custom tools plugin" 2014-12-12 18:00:01 +00: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
Jean-Frédéric Berthelot
0051ad311b Add Mercurial plugin feature to jenkins-job-builder
Adds Mercurial plugin to jenkins-job-builder.
This allows you to use hg repositories in your Jenkins config
eg:
    scm:
      - hg:
         branch: feature
         url: ssh://hg@hg/repo
         modules:
           - module1
           - module2
         browser: hgweb
         browser-url: http://hg/repo

Follows up on change ids:
 I00aaa4bb7a67ee5038ed1eff79b5497866730d19
 I134c8af15f0d4dc895f7131c77085c198b701fa8

Change-Id: I628f7fbd11769b1d18551fcd2913777dbe8de5a2
Implements: blueprint jenkins-job-builder-mercurial
2014-12-11 13:59:06 +00:00
Kyle Rockman
ae38846af5 adding support for the custom tools plugin
Change-Id: I9a85a88927c7fc37bbf443295c3ef7a5f6feda50
Signed-off-by: Kyle Rockman <kyle.rockman@mac.com>
2014-12-08 10:40:04 -06:00
Jenkins
8b1d77aea6 Merge "include publisher.xunit test as doc" 2014-12-08 11:03:32 +00:00
Joshua Hesketh
cfc13d80d3 Fix the postbuildscript documentation
The docstring for postbuildscript publishers stated that onsuccess
would default to False and onfailure defaulting to True. However,
if you look below around line 2523 you'll see it's the opposite.

Update the docstring to be correct and keep the behaviour of only
running onsuccess by default.

Change-Id: Ib98095fe0d741ef3afb6d4a8893568dae9be103d
2014-12-04 16:17:42 +11:00
Jenkins
3e29642708 Merge "Make the recipients argument optional" 2014-12-03 23:31:46 +00:00
Jenkins
6a069e6468 Merge "Move extended-choice support to parameters module" 2014-12-03 23:29:47 +00:00
Thanh Ha
8660a683df URL in Maven deploy is an optional field
Passing a blank URL will cause the build to fail with
ERROR: Failed to deploy artifacts/metadata: Cannot access with type
default using the available connector factories:
WagonRepositoryConnectorFactory

Change-Id: Iab142155542f69e8ff876e7b24fd4e460b670ae8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2014-12-02 19:09:02 -05:00
Jenkins
da04a21dc4 Merge "Document node parameter usage with matrix projects" 2014-12-02 18:19:41 +00:00
Jenkins
ff7b93c8ef Merge "Add parameter to trigger_parameterized_builds" 2014-12-01 23:27:21 +00:00
Jenkins
923f84dec9 Merge "Refactor checkstyle publisher" 2014-12-01 23:18:49 +00:00
Jenkins
118f04c2f2 Merge "Add fingerprint parameter to archive publisher." 2014-12-01 23:04:37 +00:00
Jenkins
d18a48d515 Merge "adds safe-output to email-ext in publishers.py" 2014-12-01 21:34:18 +00:00