1574 Commits

Author SHA1 Message Date
Dong Ma
bff19ac90b Update cucumber-testresult plugin
- update cucumber-testresult plugin to use convert xml
- add plugin="cucumber-testresult-plugin" attribute
- add new parameter 'ignore-bad-steps' support
- update test cases

Change-Id: I8ef353fea030dc0aab0cf9f006fdc84c72834ee7
2016-10-15 14:07:40 -07:00
Dong Ma
a463b12f29 Update junit plugin
- update junit plugin to use convert xml
- update docstring of junit plugin

Change-Id: I47e5ebd159bca869a297cf5f0b85a3d63bb264ac
2016-09-14 11:31:45 +08:00
Dong Ma
23cbeda2e9 Update clone-workspace plugin
- update clone-workspace plugin to use convert_mapping_to_xml
- update doc string

Change-Id: Id4cefb9504f02ef1b654e223b6d9ddefaa122967
2016-09-08 02:14:49 +08:00
Jenkins
6853cf5ae7 Merge "Fix disabled always returning true" 2016-09-01 15:44:19 +00:00
Fatih Degirmenci
29b8249042 Add support for Parameterized Scheduler Plugin
Change-Id: I159d2379e316a7ed037ed24b379c519deb1b22ea
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-08-31 20:10:00 +02:00
Jenkins
0b8c110fb4 Merge "Rename Builder.delete_job to Builder.delete_jobs." 2016-08-31 13:00:55 +00:00
Jenkins
17bd56dda9 Merge "Remove unused builder.Builder.update_job method" 2016-08-31 13:00:27 +00:00
Jenkins
83f8950bed Merge "Add missing parameter ZUUL_VOTING to zuul style jobs" 2016-08-30 03:45:22 +00:00
Jenkins
6190a2407b Merge "Convert jclouds example to unit test" 2016-08-30 03:33:19 +00:00
Jenkins
19b237c3af Merge "docker-build-publish: Add support for buildContext" 2016-08-29 21:47:56 +00:00
Jenkins
ad3677050f Merge "Add cancel-builds-on-update to GHPRB trigger" 2016-08-29 21:43:33 +00:00
Jenkins
0545c889e1 Merge "Adding support for Hidden parameter plugin" 2016-08-27 04:15:22 +00:00
Kien Ha
54f4e51b2c Switch to import module instead of function in properties
Switch to import module helpers to keep things tidy.

Change-Id: I366124daf8ea670001ac85ec285955bb3b474fef
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-08-26 13:01:34 -04:00
Dominic Cleal
eb8a54fa45
Add cancel-builds-on-update to GHPRB trigger
Change-Id: I05c2643622f469d105d53751780b0445527faf0f
2016-08-25 11:20:44 +01:00
Jenkins
c73cb4686a Merge "add post-send script option" 2016-08-22 06:16:55 +00:00
Wayne Warren
2236a00c53 Rename Builder.delete_job to Builder.delete_jobs.
Change-Id: If57a98a00e9577fdf7a3d7585905a2102d8c61cd
2016-08-20 11:28:00 -07:00
Wayne Warren
1fe7709923 Remove unused builder.Builder.update_job method
The deprecation warning message in this method was confusing and
seemed to be intended for builder.Jenkins.update_job but it's hard to
tell for sure. Seems likely to be an artifact of an outdated patchset
in the parallelize-the-things work done last year because it's not
clear how it could apply to builder.Builder.update_jobs which has a
significantly different use case than parallel_update_job.

Change-Id: Ifb3c1a40d81b0d43ac8e85151f0a99d1502e21db
2016-08-20 00:46:57 -07:00
Wayne Warren
8ffb11a4bf Be explicit about objects exported by modules.
Change-Id: Iaea087c6c3a024922034423a8d56571184f33b7c
2016-08-20 00:34:35 -07:00
Jenkins
a4ee0a4d78 Merge "Cleanup various deprecation warnings." 2016-08-20 06:50:28 +00:00
Wayne Warren
c80e3bc5e9
Cleanup various deprecation warnings.
Change-Id: Iec16a5965d62bebb50d3e7307ab93c59304a9ab6
2016-08-20 01:24:49 -04:00
Jenkins
089d9c7cc0 Merge "Ensure logging enabled for CLI" 2016-08-20 05:23:31 +00:00
Jenkins
0a8928f51a Merge "Rename "parallelize" decorator to "concurrent"" 2016-08-19 17:32:04 +00:00
Darragh Bailey
72acdc2149 Ensure logging enabled for CLI
Re-add configuration of the logging for CLI, which was accidentally
removed in refactoring.

Remove local instance of logger variable as also defined at the module
level.

Change-Id: Idea548d5a4ed52fd7f9ccb13f9b4e898cd9cc616
2016-08-19 17:16:04 +01:00
Thanh Ha
a4cc12611a
Fix disabled always returning true
If disabled is configured to anything the existing code returns true.
Typically what was done to avoid this was to ensure disabled was
returned in the job as {obj:disabled} to keep the original type. However
if the user uses a JJB 'defaults', defaults always return a string so
{obj:disabled} does not receive a boolean it's expecting causing
disabled's value to always be a string which in code returns as true
always.

Change-Id: Ifd391945fbc7478a10d794e50a61559688c1a23e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2016-08-19 11:12:54 -04:00
Linus Wallgren
e5de8e4558 docker-build-publish: Add support for buildContext
Change-Id: I0b42f49bc1ec0b816ecd3622d20105231aa6c6db
2016-08-19 14:16:20 +02:00
Wayne Warren
dfc0efb79c
Rename "parallelize" decorator to "concurrent"
It came to my attention when I was deciding whether or not to use the
jenkins_jobs.parallel.parallelize decorator to parallelize things in
jenkins_jobs.parser that because it is using the Python threading
library nothing is actually parallelized, only concurrentized (at least
for CPython).

I actually think concurrency is fine for the original use case since
that (ie, updating Jenkins jobs) is primarily I/O bound on network
connections to a Jenkins instance. However, the "parallel" name really
is misleading and could actually be harmful for users of this API who
may mistakenly have the impression that it can be used to speed up
CPU-bound tasks.

Also removes seemingly unnecessary usages of this decorator. ie,
jenkins_jobs.builder.Jenkins.changed that is never actually calle
with a list of arguments.

Change-Id: I996f9dea440e2d6b67ea70870d22942d6eef3ec7
2016-08-18 22:47:48 -04:00
Wayne Warren
aaae83c623
Factor XmlJobGenerator out of YamlParser.
Separate XML generation from Yaml parsing/interpreting. The goal here
is to allow different sources to provide data for XML generation,
including external API users writing job definitions in pure Python or
JJB developers who would like to work on alternative Yaml parsing code
since the current YamlParser has very likely reached the limits of
what can be reasonably done with one giant expandYaml procedure.

Change-Id: I9da848acac7e944c0e07286b7399b2e1956a58a5
2016-08-18 22:42:24 -04:00
Wayne Warren
ae1fb60f16
Disentangle YamlParser and ModuleRegistry classes
Create the ModuleRegistry anywhere other than inside the YamlParser
class. This will make it slightly easier to factor a XmlGenerator out
of YamlParser, but I also want to work toward eliminating the circular
references between YamlParser and ModuleRegistry which have been
making it difficult to understand overall program flow.

This commit also replaces all YamlParser instances being passed to
Jenkins job config generating functions with a ModuleRegistry. Mostly
it seems like the parser was only needed to call the ModuleRegistry's
'dispatch' method which to be honest I don't fully understand. This is
where the circular references mentioned in previously come in...it
seems like the "dispatch" function needs access to the (mostly) raw
data contained by the parser, so it took that as a parameter.

The need for the YamlParser's job data can be satisfied by assigning
it to a property on the ModuleRegistry object before Yaml expansion or
XML generation begins; by doing this, we allow the ModuleRegistry to
avoid referencing the parser.

Change-Id: I4b571299b81e708540392ad963163fe092acf1d9
2016-08-18 22:42:24 -04:00
Jenkins
8c9c50b1f6 Merge "Add missing docs for maven-targets" 2016-08-19 01:54:10 +00:00
Jenkins
01c341245a Merge "Fix typo for reporters doc" 2016-08-19 01:53:42 +00:00
Liu Changcheng
c588b842e8 add post-send script option
We need post-send script option to configure presendScript in the
generated configure xml.
When setting post-send as below:
   postsend-script: $DEFAULT_POSTSEND_SCRIPT
We could see below informaton in the generated configure xml.
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.42">
 <postsendScript>$DEFAULT_POSTSEND_SCRIPT</postsendScript>
</hudson.plugins.emailext.ExtendedEmailPublisher>

Change-Id: Ic215b2f3a9b5e7361a2cc1772226382da341ecd1
Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Signed-off-by: Jerry Liu <primerlink@gmail.com>
2016-08-19 08:27:31 +08:00
Jenkins
3c57feb005 Merge "builders: add 'publish over ssh' support as a build step" 2016-08-18 19:06:16 +00:00
Jenkins
5debe5b3b6 Merge "add compress-log option to compress log" 2016-08-18 16:20:45 +00:00
Jenkins
2343c070d2 Merge "gitlab trigger: Update Gitlab to >=1.3.0" 2016-08-18 16:20:15 +00:00
Jenkins
263e991899 Merge "gitlab trigger: Support new "trigger-open-merge-request-push" options" 2016-08-18 16:20:10 +00:00
Jenkins
8dd473c9ea Merge "Update docker build publish to use convert xml" 2016-08-18 16:19:56 +00:00
Jenkins
9d3920d2b7 Merge "Update runscope plugin to use convert xml" 2016-08-18 16:19:49 +00:00
Jenkins
54ae76009b Merge "Update maven-builder to use convert xml" 2016-08-18 16:19:40 +00:00
Jenkins
840cba77e7 Merge "Update findbugs_settings to use convert xml" 2016-08-18 16:17:10 +00:00
Jenkins
c3c91e8d7d Merge "Update cfp builder to use convert xml" 2016-08-18 16:16:54 +00:00
Jenkins
ef02e0ce40 Merge "Fix issue that cause JCloud instance to be set" 2016-08-18 16:16:39 +00:00
Jenkins
2a3ef3fcd7 Merge "adding support for the xcode builder plugin" 2016-08-18 15:53:23 +00:00
Jenkins
74e0a67a1e Merge "Add support for Keivox KMAP plugin" 2016-08-18 15:53:06 +00:00
Jenkins
ced0640e2d Merge "Update cobertura to use convert xml" 2016-08-18 15:50:47 +00:00
Jenkins
8aea938bf2 Merge "Update Build Name Setter plugin to use convert xml" 2016-08-18 15:50:34 +00:00
Jenkins
9a9feb1875 Merge "Add support for Growl plugin" 2016-08-18 15:48:10 +00:00
Jenkins
cd08b66b61 Merge "Update LogStash plugin to use convert xml" 2016-08-18 15:34:13 +00:00
Jenkins
804b9559d6 Merge "Remove handle_entity_children for convert xml" 2016-08-18 15:33:02 +00:00
Jenkins
2f366e632a Merge "Add valid_dict parameter to convert xml" 2016-08-18 15:30:45 +00:00
Jenkins
d363b7a247 Merge "Add support for enabling empty results" 2016-08-18 15:20:31 +00:00