Python does not concatenate strings before performing
substitutions. Make sure that python sees the error message
as a single string.
Change-Id: Ib0561f93c76239b93000885250b3fa15ccaeb937
This patch refactors the tests suite to use a base class to declare test cases
just using a class declaration, the existing test class was modified to use it
and new tests are using it as well.
These tests verify the XML generated when the 'node' option is set and
when it's absent.
Change-Id: Iddcdd63e0ab7c459f6513b1d1ebf19e19a362c1d
Fixes bug 1250939
If the -o option isn't specified, then the code will end up updating the
jobs instead of outputting the XML to a directory. That can be a fairly
big surprise.
Change-Id: I3b84b097ea7fc96c18aa2d49b3bff246833822a6
There is apparently no way to clear this property using the REST api
once it is set, and the included documentation change warns of that.
Change-Id: I49c5a91664cd37196f3239854bb0adbcf5b3c9f9
- Made all four of the
gerrit-build-(successful|failure)-(verified|codereview)-value
parameters optional, so you can override only the ones you want.
- Also allows for vote values like '+1' in the yaml by first coercing
to int and then str.
Change-Id: Id2ad7e4a4cf53bd33b3aca80fd95ed1d4b3ff266
You don't need to specify all logrotate explicitely as -1 if you don't want to manage them.
Jenkins will automatically populate them as -1 if you don't enter any value.
Change-Id: Id9ee223d94e2c43cd0a1c1f5547a25858873ed92
This changes adds the build result trigger plugin to trigger
a build when downstream jobs have a specific status
Change-Id: I00a0075ba625bc711f75a41e5202f93fbfdd0d8e
The xUnit publisher (introduced by 2736e149) add a copy paste issue that
caused the 'boostest' type to use an XML element named
AUnitJunitHudsonTestType instead of BoostTestJunitHudsonTestType.
Closes-Bug: 1239121
Change-Id: I612075f5327025136d161dd60653a4f8edabb772
Now you can specify a globbed parameter when updating or deleting a job,
it will parse the yaml files and select those jobs that match to be
updated/deleted
For example:
jenkins-jobs --config ~/jenkins.ini update myjobs/ \*only_those\*
Will only update the jobs that have 'only_those' on their name.
For the delete subcommand the option '-p' lets you specify the path
where to load the job list from, so you can use globs for the jobs in
that list (it does not allow you to use globs with non-managed jobs)
Change-Id: I5bb1074845fb143c7c3120c138a6b138d3548305
Signed-off-by: David Caro <dcaroest@redhat.com>
Watch for parse errors when checking if a job is managed
by jjb.
Log the jobs that are ignored for removal.
Change-Id: I11207bdaf16b5645c37785bd31f2feb9d1bcae11
This patch allows to use template variables in dictionnary key.
This fix the usage of template variables in JClouds template instance name.
Fixes bug #1239688
Change-Id: I395e6dcfa008e770d72e4e671ea85085ef6cffe5
When ever we attempt to format a string and are missing some parameter,
we end up with:
<stacktrace>
KeyError: 'ext-name'
Which is not that helpful. This patch dump the string being formatted
and the list of parameters provided to deep_format(). Example output:
JenkinsJobsException: ext-name parameter missing to format ext/{ext-name}
Given: {'jobs': ['{name}-ruby1.9.3lint', '{name}-browsertests'],
'name': 'mwext-UniversalLanguageSelector'}
Which in most occasion should be self explaining.
Note the KeyError is reraised as a generic Exception since the format is
meant for human and is no more representing the key.
Change-Id: I46fced45c4586fca8ea999766327b7b4b2dc6505
Simply add the optional option to the copyartifact plugin that was
missing. It comes with a small pieces of doc and related tiny
relevant sample.
Change-Id: Ib74932bd9e0a988b826547badd02c8a1c67ae138
Closes-Bug: #1236909
The approach is pretty straigh forward, it consists of one new
module handling the project-type "flow". It supports the only field
needed by this kind of project an XML block containing the flow
description in a custom DSL.
Change-Id: I5195391609b3058ae9e24a59024e0cc7a69b16a0
Implements: blueprint jenkins-job-builder-flow