1222 Commits

Author SHA1 Message Date
Michal Vanco
12db2deb6e Support for image gallery publisher
Produce an image gallery using Javascript library using the
https://wiki.jenkins-ci.org/display/JENKINS/Image+Gallery+Plugin

Change-Id: I462c331dd989e43e100c9f23afec0529824514fa
2015-06-10 17:06:30 +02:00
Jenkins
75aabd6e81 Merge "Replace ci.o.o links with docs.o.o/infra" 2015-05-29 00:02:14 +00:00
Jenkins
4d53fe8565 Merge "Adding tests surrounding handling of defaults values" 2015-05-28 21:56:58 +00:00
Jenkins
d639c5475a Merge "Add logstash publisher" 2015-05-28 12:51:18 +00:00
Jenkins
5c6293e43a Merge "added support for NodeLabel parameter in trigger-builds" 2015-05-28 12:09:43 +00:00
Jeremy Stanley
892a4de53b Replace ci.o.o links with docs.o.o/infra
The http://ci.openstack.org/ documentation site has been deprecated,
replaced by redirects to corresponding paths within
http://docs.openstack.org/infra/ where other Project Infrastructure
documentation already resides.

Change-Id: Iafe263b9e4dddd25358f74edda03eb72781890b2
2015-05-28 06:28:47 +00:00
Richard Pijnenburg
b56e8812c7 Adding tests surrounding handling of defaults values
waynr fixed a bug but explained in concat_defaults002
This bug happens when some values are specified in an other defaults
namespace then global.
This causes JJB to fail that its unable to find the required keys
becasue these were not merged correctly

Change-Id: Id0df24ba7cf8281389c2ed7af7ee716047d0e4a5
2015-05-27 18:24:54 +02:00
Jenkins
9ecafdc284 Merge "Allow use of aliases defined previously inside included files" 2015-05-22 17:23:32 +00:00
Richard Pijnenburg
667ff88967 Add logstash publisher
The logstash publisher sends the build log to Logstash via Redis or
RabbitMQ

Change-Id: I85bfc9c4a70cd4ced79bdb29f95ee6b514b72e4f
2015-05-22 10:20:48 +02:00
Will Soula
2d09702c8a Add support for Gatling plugin
This plugin integrates gatling, an open source strees tool,
with Jenkins and allows you to:
* Keep track of a Gatling simulation, providing performance trends across
builds
* Publish detailed reports for each build

Change-Id: Id58337012cd867cc019515e58c86a33d806fbd2a
2015-05-21 13:35:08 -05:00
Clark Boylan
b91cca3945 Test with LANG set to UTF-8
Tox 2.0 does not pass the environment from the caller through anymore.
THis means your locale LANG setting is not set which makes the utf8
tests unhappy in JJB. Correct this by explicitly setting a LANG of
en_US.UTF-8. The important bit is the UTF-8 specification, en_US was
chosen somewhat arbitrarily.

Change-Id: I0fc5b5ab80414b392b7cebe9b4e0ebc5cc42c61c
2015-05-20 08:11:12 -07:00
Victor Seva
1191dcfccf Allow use of aliases defined previously inside included files
Anchors and aliases were expanded internally within JJB's yaml loading
calls so they were limited to individual documents. Now, included files
will have access to aliases of anchors already defined at previously
processed files.

Example:

- default:
    name: default-timeout-wrapper
    timeout: &timeout
      fail: true
      elastic-percentage: 150
      elastic-default-timeout: 90
      type: elastic

- wrapper: !include include002_1.yaml.inc

Previously was not possible to use '*timeout' alias inside
include002_1.yaml.inc file

Closes-Story: 2000173

Change-Id: Ic031ddbb0310bd11748183fbde9502735c3b7169
2015-05-14 14:01:11 +02:00
Yolanda Robla
6c6370bbff Query all jobs once
Instead of doing an individual api call each time,
to check if a job exists, do an initial jenkins get_jobs()
call on init, and use that list as a cache, to speed
up job queries.

If a job is not found in cache, we still will be querying
jenkins directly as a fallback.

Change-Id: Ie3eff875f4d832a42c9e38478f62055bc135a7e0
2015-05-12 12:50:10 +02:00
Jenkins
5be7b768de Merge "Revert "Added parallelization options"" 2015-05-05 22:58:08 +00:00
James E. Blair
f74ce34d36 Revert "Added parallelization options"
This reverts commit 7100a7f225e60936f23d24c757c1b14c9b136ec4.

The referenced commit, in addition to what it advertises, also
filters the result of update_jobs to include only changed jobs.
If there are no change jobs, then, if the user specifies
--delete-old, there are no jobs in the list of jobs to keep
which comes from the result of update_jobs.  In that case, all
jobs are deleted.  Or in other words, the logic in this change
is that all jobs not updated are deleted.

Proposing as a revert because this is currently causing serious
problems for continuously deployed JJB instances, and the very
common --delete-old code path should be properly tested with
this change before it lands again.

Change-Id: I98443f0c085e27ed8dfece6409434015ac24b306
2015-05-05 18:30:03 +00:00
Jenkins
3e028f4a5a Merge "Support the use of lists in trigger-build builder." 2015-05-04 16:25:26 +00:00
Jenkins
85634eb37c Merge "Add support for 'raw' to inject direct xml to job configs." 2015-05-04 16:05:51 +00:00
Jenkins
4fd762cf04 Merge "(hipchat) Accept list of hipchat rooms." 2015-05-04 16:00:39 +00:00
Jenkins
ac7379307a Merge "Added gerrit trigger missing options" 2015-05-04 15:32:04 +00:00
Jenkins
893842341e Merge "Added parallelization options" 2015-05-04 15:30:25 +00:00
Max Rydahl Andersen
cb876b481e Add support for 'raw' to inject direct xml to job configs.
'raw' allow users to have a fallback in case
a plugin is not yet supported or the plugin is not generating the
expected result.

Only intended as a last fallback, but useful when waiting for
review to complete.

Change-Id: If0d22d7d43d35649e78aa7481e1c0f1ed21a6025
2015-05-02 15:42:32 -07:00
Jenkins
e4f77fe06c Merge "publishers: groovy-postbuild changes between 1.x & 2.x" 2015-05-01 18:52:45 +00:00
Jenkins
919e907df7 Merge "Add support for Display Upstream Changes Plugin" 2015-05-01 18:30:24 +00:00
David Caro
7100a7f225 Added parallelization options
* Only update_jobs uses the parallel features right now
* --workers N
    - if set to 0, it will use parallel execution and
      use the number of cores in the machine as thread count
    - Any other value enables the paralllel extensions and sets the
      number of concurrent threads to that value
    - Will use 1 by default

Added some tests to make sure the parallel execution helpers work as
expected

Change-Id: Iee8426ff2dc4c5b4ebec4c15bdd21cae5b47eb83
Signed-off-by: David Caro <dcaroest@redhat.com>
2015-04-30 21:33:08 +02:00
Jenkins
f6a8cfede5 Merge "Remove YamlParser from jenkins_jobs.builder" 2015-04-23 17:07:59 +00:00
Jenkins
38ef922a2b Merge "Remove superfluous calls to matches()" 2015-04-23 17:07:10 +00:00
Jenkins
2a8b57aa40 Merge "fix test in include-raw-escape001.yaml" 2015-04-23 15:22:59 +00:00
Jenkins
4d57933124 Merge "Log the job name info when running test mode" 2015-04-23 15:20:00 +00:00
Jenkins
d604353ca4 Merge "Treat non-existant output files as empty files" 2015-04-23 15:11:26 +00:00
Jenkins
3d35b6d94d Merge "Support hacking module <= 0.10.1" 2015-04-23 14:56:11 +00:00
Jenkins
49739b57ec Merge "Only query jenkins plugins if config provided" 2015-04-23 14:52:46 +00:00
Jenkins
231a500f92 Merge "Log info about updated and deleted jobs" 2015-04-23 12:16:08 +00:00
Wayne
2c156b9606 (hipchat) Accept list of hipchat rooms.
Change-Id: I8c840fdebd58ed4dd22c6a5cafa549bfaf5357cf
2015-04-23 11:53:13 +01:00
Jenkins
4135e14342 Merge "zuul: drop notifications" 2015-04-23 09:52:54 +00:00
Jenkins
f966521af4 Merge "Support for Xvfb plugin" 2015-04-23 09:52:45 +00:00
Jenkins
a5a5e2285a Merge "Add support for Sonatype CLM plugin" 2015-04-23 09:45:24 +00:00
Jenkins
46bc5c1b3c Merge "Add support for hipchat notifier 0.1.8" 2015-04-23 09:33:41 +00:00
Jan Hruban
06ecd90374 Add support for Display Upstream Changes Plugin
Supports publisher for displaying SCM changes for upstream jobs
https://wiki.jenkins-ci.org/display/JENKINS/Display+Upstream+Changes+Plugin

Change-Id: I7720220ce05e2882e407ea75ca0c689cbd8c9a0b
2015-04-23 09:36:36 +02:00
Wayne
4a8b93b8c2 Remove YamlParser from jenkins_jobs.builder
The goal of this patch is simply to move some classes out of
jenkins_jobs.builder into more appropriately-named modules. This started with
simply moving YamlParser into jenkins_jobs.parser but led to other moves in
order to avoid cyclic imports since YamlParser uses other classes previously
defined in jenkins_jobs.builder.

That said, this patch doesn't intend to address all of the clutter in
jenkins_jobs.builder, mostly just what is necessary to get started working on
YamlParser independent of other classes in that module.

Change-Id: Ie88bf683e495033eb0b670fe29c256a70282735f
2015-04-22 11:59:07 -07:00
Darragh Bailey
c29066210c Remove superfluous calls to matches()
Remove unnecessary calls to matches() and ensure that delete_job() is
correctly passing the jobs_glob argument to the expandYaml() method call
since it uses a string whereas update_job() is using a sequence of
strings.

Once the bug with how delete_job is calling expandYaml() is fixed, the
subsequent call to matches() can be removed.

Change-Id: Iaf1404e26691384fd1d55ea630457860cc1beff5
2015-04-22 18:27:31 +01:00
Thanh Ha
56db5a2789 Add support for Sonatype CLM plugin
Sonatype Component Lifecycle Management Plugin is a plugin that adds
Jenkins support to the Sonatype CLM service. For this plugin to be
useful it requires access to a Sonatype CLM server.

See: http://www.sonatype.com/clm/overview

Change-Id: Ie1eb7ab465f38c71230bf14c7af3cf89e928abe0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-04-22 15:53:08 +00:00
Jenkins
6c3cf55400 Merge "Add FindBugs support to Publishers" 2015-04-22 15:42:29 +00:00
Jenkins
172963dc16 Merge "Initial work for supporting downstream-ext" 2015-04-22 15:42:20 +00:00
Jenkins
fea93ad40b Merge "Add support to CFP in builders sections" 2015-04-22 15:35:29 +00:00
Michal Vanco
380404b571 Support for Xvfb plugin
* compatibility checked with versions 1.0.8 and 1.0.16

Change-Id: Icb59daf3bc6a2d69e2eb295cce5e7c03bd3a9f39
2015-04-22 09:51:03 +02:00
Wayne
9fff49a7d2 Add InvalidAttributeError and MissingAttributeError.
The point of this patch is to begin promoting a more consistent approach to
producing configuration error messages.

Change-Id: I5cb79c05d791091694731f2034d9205f7eeb76b4
2015-04-21 11:34:13 -07:00
Thanh Ha
24849929e1
Add support to CFP in builders sections
- Adds additional support for Config File Provider to builder sections
- Move builder/wrapper configuration to a common helper function for
  reuse

Change-Id: Ie80a3abbd42bdd06d138dcd0c5beea26c9a81f26
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-04-20 21:09:59 -04:00
David Caro
54ab0713bf Added gerrit trigger missing options
it was missing the options to set the verified and code review values on
unstable, start and not built statuses.

Change-Id: Ia462d48efc645218281040ff38ab0f7c00e1859d
Signed-off-by: David Caro <dcaroest@redhat.com>
2015-04-19 21:58:58 +02:00
Wayne
d2f9258864 Add support for hipchat notifier 0.1.8
Change-Id: I834dc05465ea5a24e3743f400837482a82e02e70
Closes-Bug: 1377567
2015-04-17 14:52:59 -07:00
Wayne
c5d7fa6675 Support the use of lists in trigger-build builder.
Since Jenkins parameterized build trigger buildstep supports comma-separated
list of jobs to build, this simply joins a list of jobs specified in JJB yaml on
a comma.

Change-Id: I0a65f3497d4a68d798ea29c580b6217bbecfe222
2015-04-17 13:51:47 -07:00