2477 Commits

Author SHA1 Message Date
Evgeni Golov
f2c4453df3 re-raise the original Exception instead of raising a new one
this preserves the error traceback and makes debugging easier

Change-Id: Ia513ac009b81d35e3df11939771aa29e40700c08
2017-11-06 13:36:17 +01:00
Zuul
572150f0ea Merge "Update valgrind to use convert_mapping_to_xml()" 2017-10-27 04:25:10 +00:00
Zuul
f9045ed3ca Merge "Update tfs to use convert_mapping_to_xml()" 2017-10-27 04:22:37 +00:00
Zuul
04348c2c00 Merge "Support all parameters in gitlab-merge-request" 2017-10-27 04:09:52 +00:00
Zuul
f668bbae49 Merge "Update svn-tag parameter to support all config" 2017-10-27 03:41:38 +00:00
Zuul
c1c67fcdf5 Merge "publishers: add args to gitlab publisher" 2017-10-27 03:36:33 +00:00
mostwanted
b972fc07ec
Add support for the Git Parameter Jenkins plugin
Change-Id: I7522f1250de88f073c0f47149dafed7fff9ecd9f
Resolves: #2000902, #2000802
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-25 23:32:50 -04:00
Joost van der Griendt
208527640a
Update svn-tag parameter to support all config
Additionally update the plugin to use convert_mapping_to_xml and add
min/max tests.

Change-Id: I8f0a9054c12ea984a286aea1012513baac07479f
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-25 22:52:39 -04:00
Lukas Lowinger
ed1c647aaf
Support all parameters in gitlab-merge-request
Change-Id: I21c667515b7073a19696a8d8f27d9cf2b4278504
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-25 22:50:06 -04:00
Zuul
a23f8bf8db Merge "Add cloudbees folder creation support" 2017-10-23 19:12:14 +00:00
Zuul
2b65528b44 Merge "Basic folder support" 2017-10-23 19:04:56 +00:00
Zuul
4b53ba66bf Merge "Add support for new parameter option in Slack Plugin" 2017-10-23 18:49:25 +00:00
Zuul
695c34e991 Merge "Add support for CloudBees Docker Hub Notification Plugin" 2017-10-23 18:49:24 +00:00
Yolande Amate
4ee8581e38
Update tfs to use convert_mapping_to_xml()
Change-Id: Iec3972d2f16e660759b9eeaedb26bddea2ff21a6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-23 14:25:31 -04:00
Yolande Amate
d6dcd31803
Update valgrind to use convert_mapping_to_xml()
Change-Id: Idfb06d953cdf074028358a5481586c65553f8e1c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-23 14:19:02 -04:00
Zuul
ec3de63dab Merge "Update cloudformation_stack to use convert_xml()" 2017-10-23 18:14:43 +00:00
Zuul
441add1aad Merge "ansible_playbook: add support for DoNotSpecify inventory type" 2017-10-23 18:07:07 +00:00
Zuul
45a10f9193 Merge "Adds support for prefix-variable in version-number wrapper" 2017-10-23 17:44:18 +00:00
Zuul
8af107a957 Merge "Update class Pipeline to use convert_mapping_to_xml()" 2017-10-23 17:44:17 +00:00
Jerome Hourquebie
8bcd0d0bd2
Add cloudbees folder creation support
Add project folder module. Jenkins folder could be made with project-type: folder
This requires Cloudbees folder plugin and python-jenkins folder update
(see: https://review.openstack.org/#/c/180185/)

Change-Id: I7e1c28c26a69ae6ca736cec88fcb957a716d8fad
2017-10-23 13:34:56 -04:00
Zuul
3bb56f745e Merge "Update build_keeper to use convert_mapping_to_xml()" 2017-10-23 17:31:35 +00:00
Darragh Bailey
af9d984baa
Basic folder support
Allows specifying a folder attribute for each job generated, which in
turn is used when creating or uploading to place the job under the
requested folder.

The job name is expanded after defaults are applied, to support the
attribute being defined within a set of defaults applied to a number of
jobs.

This in turn allows for multiple jobs with the same basename to exist,
provided they are targeted at different folders.

Does not support creating the folders if they do not exist.

Change-Id: I8c2157c4c81087cc972a048d1b88d5f08ac65361
2017-10-23 13:29:21 -04:00
Zuul
16a307188e Merge "Add support for the Branch API Plugin" 2017-10-23 17:28:33 +00:00
Zuul
6445c6c3a1 Merge "Update extended_choice_param to use convert_xml()" 2017-10-23 17:24:35 +00:00
Yolande Amate
c067b01583
Add support for CloudBees Docker Hub Notification Plugin
Change-Id: I1653c79c3abef9afa8157f3af04ee39a3e7a804e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-23 13:13:00 -04:00
Zuul
09f979a97f Merge "Add support for jira_comment_trigger" 2017-10-23 17:11:45 +00:00
Zuul
ffa96cca7b Merge "Add support for jira_issue_updater" 2017-10-23 17:11:44 +00:00
Zuul
d4a4d55553 Merge "Switch param order from yaml conf to plugin specific" 2017-10-20 14:23:30 +00:00
Ken Dreyer
7f853603c5 publishers: add args to gitlab publisher
Add support for "Name" and "Mark unstable as success" options.

Move the existing gitlab-notifier test to "minimal" and add a "full"
test that exercises these new args.

Change-Id: I0affb14ac51accf766d930dda816537ceb1d23fc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-13 12:14:35 -06:00
Jenkins
229134923d Merge "Give an explicit error message when unsupported view type used" 2017-10-10 07:53:02 +00:00
Jenkins
d0c0e108c2 Merge "Add default columns to list views" 2017-10-07 16:24:17 +00:00
Daniel Watkins
0cbcf2c710 Update tox.ini to run voting tests by default
When a developer runs `tox`, they should see the results which will be
voting in gerrit.

Change-Id: I4964b674a1317f454739ef69505c985dc323f845
2017-10-06 14:27:04 -04:00
Daniel Watkins
e6d6c276d1 Give an explicit error message when unsupported view type used
When specifying a view type that isn't supported by any modules (such as
"list-view" instead of "list"), this ensures that the user is guided
towards something correct.

This changes the error message in this case from:

AttributeError: 'NoneType' object has no attribute 'name'

to:

jenkins_jobs.errors.JenkinsJobsException: Unrecognized view type: list-view (supported types are: list, pipeline)

Change-Id: I0ee800db1c9c8aeecffcf11f1e86c03ba0590da8
2017-10-06 14:24:48 -04:00
Daniel Watkins
83592a094b Add default columns to list views
This uses the default "All" view columns as the columns for any views
without a columns attribute sets.  This means that view definitions
which don't define any columns will still end up producing a useful
view.

(Note that the "All" columns are not fetched from the Jenkins instance;
the columns that are the default in a fresh Jenkins install are
hard-coded.)

Change-Id: I0a21e024be383088c6238c3fc7beb708af8c2c46
2017-10-06 14:22:59 -04:00
Jenkins
41c54bba00 Merge "Add support for unstable return parameter for shell builders" 2017-10-06 15:12:29 +00:00
Jenkins
bfa1ae56eb Merge "Add Support for a list of additional-credentials in the SVN-plugin" 2017-10-06 15:07:50 +00:00
Jacqueline Haefke
88e4dfdc2c Add Support for a list of additional-credentials in the SVN-plugin
Since the 30.01.2017 the SVN plugin support additional-credentials, but the jenkins-job-builder can't generate this part:

<additionalCredentials>
     <hudson.scm.SubversionSCM_-AdditionalCredentials>
        <realm>...</realm>
        <credentialsId>...</credentialsId>
     </hudson.scm.SubversionSCM_-AdditionalCredentials>
     <hudson.scm.SubversionSCM_-AdditionalCredentials>
        <realm>...</realm>
        <credentialsId>...</credentialsId>
     </hudson.scm.SubversionSCM_-AdditionalCredentials>
</additionalCredentials>

Now you have optional 'additional-credentials' parameters.

Change-Id: I801cada4bd630242a216a1facc4abfc8d5378bcf
Task:4884
Story:2001152
2017-10-06 10:08:32 +02:00
Daniel Watkins
ba913ea800 Add support for unstable return parameter for shell builders
This continues to support the current string form for job configuration,
as well as adding a form that supports a mapping.  This mapping has two
keys: "command", containing the command to be executed (i.e. the current
string parameter); and "unstable-return", containing the exit code that
configures the exit code that should cause a build to be marked
unstable.

Change-Id: I43ecc883236bbf8fc6de7ed8992e6d90da7d48ac
2017-10-05 14:58:27 -04:00
Jenkins
5be08a5be6 Merge "Allow update to provide plugin_info via yaml" 2017-09-26 15:16:32 +00:00
Jenkins
eff67d90f7 Merge "change assert(Not)Equals to assert(Not)Equal" 2017-09-26 14:47:58 +00:00
Darragh Bailey
d62fcc8ca4 Switch param order from yaml conf to plugin specific
Migrate from a global config __future__ to control behaviour to plugin
specific options to decide on whether to take the param order from yaml
when using the trigger-parameterized-builds plugin or when plugins are
making use of it as well.

Adjust the config retrieval to support a default value to simplify
logic around ensuring the behaviour matches 'true' by default.

Remove some redundant logic in helper module handling a default value
lookup and add some additional conf files to continue having some tests
using the old behaviour.

Remove old conf files setting the __futures__.param_order_from_yaml to
true as this is now the default under the correct plugin setting.

Change-Id: Ibd5f549b6d626bacaaa4221015a70aaf03626b00
2017-09-22 16:34:16 +01:00
Jenkins
51832b1881 Merge "Document JJB 2.0 plugin config default behaviour" 2017-09-20 00:43:26 +00:00
Jenkins
bfc0f6faf1 Merge "Default gitlab to newest plugin config format" 2017-09-20 00:43:15 +00:00
Jenkins
7b1a71d882 Merge "Default artifactory-generic to newest plugin config format" 2017-09-20 00:43:09 +00:00
Jenkins
9e342cc5bd Merge "Default cmake config to newest plugin format" 2017-09-20 00:43:02 +00:00
Jenkins
333fde2da8 Merge "Default groovy-postbuild to newest plugin format" 2017-09-20 00:41:26 +00:00
Jenkins
646c61bb34 Merge "Default slack to newest plugin config format" 2017-09-20 00:40:51 +00:00
Jenkins
ea583ffe93 Merge "Default conditional-publisher to newest plugin format" 2017-09-20 00:40:10 +00:00
Thanh Ha
2974f1e636
Allow update to provide plugin_info via yaml
Getting plugin info requires Administrator permissions. It seems the
test command allows providing the plugin_info details via a yaml
configuration file. This patch allows the same command to be passed to
the update command to allow us to configure the plugin versions manually
and not require administrator permissions.

Additionally this patch adds a new command called get-plugins-info
which can create the plugins_info.yaml file to pass to the
plugin_info_path.

See:
http://lists.openstack.org/pipermail/openstack-infra/2016-June/004388.html

Change-Id: I5a34979407d863a84f34afbf8f565081ec52190a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-09-19 18:17:15 -04:00
zhangyangyang
8744b5b1a5 change assert(Not)Equals to assert(Not)Equal
According to http://docs.python.org/2/library/unittest.html
assert(Not)Equals is a deprecated alias of assert(Not)Equal.

Change-Id: Ibadf2b2c6cb09db6f5cc191240aad2ac8cb4ea33
Closes-Bug: #1329757
2017-09-13 17:24:13 +08:00