837 Commits

Author SHA1 Message Date
Joakim Löfgren
06fc3457f9 Add PMD publisher
Change-Id: I40320337fec0d1564bb1f4b88b4f7a1aa4f2dfc5
2014-09-17 11:12:36 +02:00
Jenkins
feda21acb1 Merge "valgrind publisher: Add parameters to fail build" 2014-09-01 14:34:56 +00:00
Ilia Meerovich
c10c862df4 Implements wrapper for ownership plugin.
This wrapper sets "Inject ownership variables into environment"

Change-Id: Ib8a37c1a5cd3c6ec35d7fb25fddee82fdeb76aaa
2014-09-01 14:11:16 +03:00
Jenkins
fef529287e Merge "Handle utf8 in JJB" 2014-09-01 10:11:19 +00:00
Christian Fetzer
59483513a3 valgrind publisher: Add parameters to fail build
Add optional parameters fail-no-reports and fail-invalid-reports that
set the build status to failure if no valgrind reports are available
or if the reports are malformed.

This parameters have been added to the Jenkins Valgrind Plugin
version 0.21.

Change-Id: I558802896f24a596f07957ab58a83fcaf6054093
2014-08-31 22:11:14 +02:00
Clark Boylan
8b982ed886 Handle utf8 in JJB
JJB didn't actually handle unicode data very well for a couple reasons.
First the local yaml loader was loading files into yaml as strings
instead of unicode which we should just go ahead and do because yaml's
built int loader loads utf-8 by default (and we don't override the
default). Second we need to do parameter substitution on unicode and
regular strings so change the substitution typecheck to use basestring
instead of str. Finally we need to use UTF-8 as the encoding when
emitting XML so do that.

Add tests to actually test this in the yamlparser tests. The addition of
these new tests comes with a little bit of cleanup in the test classes
to make sure we load unicode files as utf8 more consistently.

Change-Id: I2169e19aae2cdc7ddbd1e7217ef7584c786a039a
Fixes-bug: 1361090
2014-08-29 14:19:21 -07:00
Jenkins
f0e55ee5fc Merge "Allow configuration of Topics for Gerrit trigger" 2014-08-29 17:55:20 +00:00
Jenkins
e5c0c619ba Merge "Add support for the Jenkins Valgrind publisher plugin." 2014-08-26 17:06:08 +00:00
Christian Fetzer
367f13927a Add support for the Jenkins Valgrind publisher plugin.
Change-Id: Id5d460a8432b2ab875e8e7063f459ef15b942284
2014-08-25 23:29:49 +02:00
Jenkins
ae29adb3c9 Merge "Apply defaults to job-templates parameters" 2014-08-25 17:16:07 +00:00
Jenkins
cdbcb950b5 Merge "Adding feature to specify the user id for jenkins user credentials" 2014-08-25 16:56:18 +00:00
David Pursehouse
e6f602b57c SCM: rename self arguments to parser
For consistency with other modules.

Change-Id: Ia78173f0c895896751f4e17fff5fd47f3e9c1ad5
2014-08-25 00:56:05 +00:00
Atin Ruia
c50d14c6d4 Adding feature to specify the user id for jenkins user credentials
This feature allows one to specify the user id for the jenkins
ssh-agent-credentials in the wrappers section of the yaml file.
Also providing yaml and corresponding xml files for testing.

Change-Id: I6c19945450c6ef55fead72c32594adb5a9b807c6
2014-08-22 19:13:29 -05:00
Kevin L. Mitchell
df37b9b7c7 Work around PYTHONHASHSEED-related problems
The JJB unit tests no longer pass, due to an upgraded version of
tox which sets PYTHONHASHSEED to random values.  Since the ordering
problem introduced is a difficult one to smash, this just sets
PYTHONHASHSEED to 0.  This also fixes the syntax of the
"[testenv]setenv" configuration setting.

Change-Id: I61fdbdf1a5099bcbacaeba59ff5001bb23df8cfd
Related-Bug: #1348818
2014-08-22 18:01:23 -05:00
Antoine Musso
98b69476ea Apply defaults to job-templates parameters
I had the use case of a lot of projects sharing the same job template
that uses a lot of variables.  That requires each project to define all
the variables even if they are mostly identical.

This patch propose to define varialbes as 'defaults' and have them
applied in the job-template magically (oneline diffs always have that
feeling to me).

So instead of:

- project:
    name: project1
    arch: amd64
    builder: debuild
    lintian: true
    jobs:
     - '{name}-build-{arch}'

And so on ...

I can just:

- defaults:
    name: sanebuild

- project:
    name: project1
    defaults: sanebuild
    jobs:
     - '{name}-build-{arch}'

And override the arch as needed either in the project or by passing it
to the job.

Without this patch, the provided yamlparser fixture
template_honor_defaults.yaml would raise:

    arch parameter missing to format echo Build arch {arch}.
    Given: {'': '', 'jobs': ['build-{arch}'], 'name': 'project-name'}

Change-Id: Ida1e27eb47356d9cae42175743bd2fd52eb9d869
2014-08-22 23:35:54 +02:00
Pavel Sedlák
7fc8758441 Allow configuration of Topics for Gerrit trigger
Gerrit trigger in addition to project name, branch and
file-path also supports when-to-trigger limitation
based on topic of the change, this adds support for that.

Change-Id: Icfcb3f02903a61294d23dd53308287a67927c777
2014-08-21 15:29:34 +02:00
Guido Günther
0268581fca git: Support timeout option
This requires git plugin version 2.2.3

Change-Id: I24a2bce00e35f74a5c513d02a7bffe05267cd498
2014-08-14 21:39:05 +02:00
Jenkins
ca6335d770 Merge "Allow test command to use conf files" 2014-08-12 19:41:05 +00:00
Jenkins
e7f5b92ea0 Merge "add include/exclude regions/users in svn scm (doc and tests)" 2014-08-12 00:35:42 +00:00
Jenkins
d81b27120b Merge "Add support for URLTrigger plugin" 2014-08-11 21:56:20 +00:00
Jenkins
0e159bc1fa Merge "Clarify configuration and job definition" 2014-08-11 20:33:34 +00:00
Jenkins
aff738d77b Merge "Document default values for git scm" 2014-08-11 20:14:53 +00:00
Khai Do
3dcd906880 Clarify configuration and job definition
The docs was a little confusing in that used a single term 'configuration' to
referred to both the JJB global configuration and the job definitions.
This change clarifies that by changing 'configuration' in a few places
to 'job definition' to make it less confusing.

Change-Id: Ie64e7d899b793c9c8e86e51076c020640e336a40
2014-08-02 08:24:10 -07:00
Khai Do
848ce968e0 Replace 'Testing JJB' with the term 'Test Mode'
The term 'testing' is overloaded.  I thought it meant running the actual
JJB tests instead of running the JJB application.  I think a good way to
distinguish the two is to use the term 'test mode' when it's in the
context of running the JJB application with the 'test' parameter.
I've already been using the term 'run in test mode' quite a bit in
my JJB reviews to distiguish it from the actual JJB tests.

Change-Id: I2076189e3ae55caa20d0894fb20859a7c461e46a
2014-08-02 07:44:52 -07:00
Randy Coulman
88d3f2b399 Add support for URLTrigger plugin
Change-Id: Ibc96b3ecd65afb27398328f2b6220c32a800f3e6
2014-08-02 07:21:42 -07:00
Jenkins
666e9537f7 Merge "Argparse is required for JJB to parse arguments" 2014-07-27 05:50:07 +00:00
Jenkins
8a6f7e1f5b Merge "Test defaults honors project variables" 2014-07-27 00:13:03 +00:00
Jenkins
6ae5c84699 Merge "Add support for 'ignore-notify' in git SCM" 2014-07-27 00:06:11 +00:00
Darragh Bailey
fd82f48a84 Argparse is required for JJB to parse arguments
Move argparse requirement from tests to install requirements as it is
required when using JJB.

Change-Id: If503ebfe790c904f77ef45b59ea909a2577db5cd
2014-07-27 00:49:51 +01:00
Christian Hofstaedtler
77ab7b8d00 Document default values for git scm
Change-Id: I0a1671c1f4de86f516d6f1605503175e5973e07b
2014-07-27 00:54:01 +02:00
Christian Hofstaedtler
8999a87c13 Add support for 'ignore-notify' in git SCM
This option is named "Don't trigger a build on commit notifications"
in the Jenkins Web UI.

Change-Id: I338af61f8bfdef1545d1ea206e6874cda38957cd
2014-07-27 00:41:04 +02:00
Vasiliy Zasukhin
aa3a281448 add include/exclude regions/users in svn scm (doc and tests)
Change-Id: I99ed104cd2cbaba1588dfc31d3b8a028de2e80ee
2014-07-24 23:02:11 +04:00
Antoine Musso
bcbfda844b Test defaults honors project variables
The defaults can make use of variables passed by the project and I am
taking advantage of that feature in my templates.

With 70ed2236 / https://review.openstack.org/#/c/85336/ there is a
regression which cause the test to fail although it pass with parent
commit d833015.

Change-Id: I57d023657eec4f6f8f29980100185fcfd7e77b1f
2014-07-24 15:54:13 +00:00
Antoine Musso
ab434cc288 Revert "Allow using template variables in "defaults" field."
This reverts commit 70ed22362a9c13ea9f3165e5747dcca281ad439c.

I knew I should have tested the patch with my own templates. Doing so I
discovered a nasty regression:

The defaults can make use of variables passed by the project. By moving
applyDEfaults to be called after deep_format is performed on job
templates, any substitutioncontained withing defaults is no longer
correctly replaced by project parameters.

Change-Id: I69ffb3e28093af6db62962786d9275bf3ba4e115
2014-07-24 15:54:07 +00:00
Jenkins
442d5c8a2c Merge "Show usage of job-group" 2014-07-23 16:27:57 +00:00
Jenkins
5939c4eed5 Merge "Add support for reverse build trigger" 2014-07-22 15:49:11 +00:00
Jenkins
fdce8b8ee1 Merge "Specify logging string format arguments as function parameters" 2014-07-22 10:50:44 +00:00
Jenkins
ef016d5601 Merge "add logfilesize plugin support (doc, tests)" 2014-07-19 06:12:28 +00:00
Vitaliy Lotorev
97a3e75e7e add logfilesize plugin support (doc, tests)
Change-Id: I3349668420d7216b1f8ecf0a539eb944d0dd69be
2014-07-19 00:42:14 +04:00
Jenkins
66a4faa22f Merge "tests for JJB command processing" 2014-07-18 01:30:18 +00:00
Jenkins
a9d16eabb4 Merge "Add Gitlab Merge Request trigger" 2014-07-16 14:18:09 +00:00
Christian Hofstaedtler
41af1b9e98 Add Gitlab Merge Request trigger
Change-Id: Ic068cf7e89be76f0f9e9187caf628fa49d7bd7fd
2014-07-15 14:10:29 +02:00
David Pursehouse
286a9b660e Specify logging string format arguments as function parameters
Change-Id: If34129e03867b342e5ea5f1d02dc7ab5b0830142
2014-07-15 14:50:18 +09:00
Darragh Bailey
f89fac42cf Show usage of job-group
Make sure the example referenced in the documentation for ``Job Groups``
actually makes use of 'job-group'.

Change-Id: Ib78bdb459db23f57093c1fd4a6dd74a5080dc239
2014-07-12 20:58:27 +01:00
Jenkins
0af8f2f2a7 Merge "Support the Store SCM plugin" 2014-07-11 11:09:06 +00:00
Jenkins
4e2e22959f Merge "Add support for Managed Script Plugin" 2014-07-10 16:36:49 +00:00
Randy Coulman
1dc925acd9 Support the Store SCM plugin
Change-Id: I9525a29e54f157c90cf98eb7f351b56d063d87dd
2014-07-10 09:36:44 -07:00
Jenkins
8356a907ae Merge "Change default Reply-To header to $DEFAULT_REPLYTO." 2014-07-10 16:25:16 +00:00
Jenkins
7204ec3130 Merge "multijob: added kill-phase-on option" 2014-07-10 16:18:07 +00:00
Jenkins
b0d117a404 Merge "Document the Zuul triggers" 2014-07-10 16:10:51 +00:00