485 Commits

Author SHA1 Message Date
Marcus Nilsson
90b663308c Added support for Stash Notifier
Change-Id: I1e3e95a152de116df62b9124a50e845bc026f608
2013-11-20 15:53:08 +01:00
Jenkins
28ec20bb7f Merge "Added support for Emotional Jenkins" 2013-11-19 18:19:34 +00:00
Kei YAMAZAKI
2cc3c83e75 Added support for Emotional Jenkins
Change-Id: Icaac9cc07b64384b3d65234bf9c603ef55f0b104
2013-11-19 19:25:30 +09:00
Khai Do
9475eeceaf fix jjb scp publisher example
The scp publisher is incorrect.  It was missing a 'files' list.

Change-Id: I45d4708d0aee53adc7a7f16334dc7538757d22d4
2013-11-18 18:00:41 +00:00
Darragh Bailey
b1c1121b16 Fix string continuation exception
Python does not concatenate strings before performing
substitutions. Make sure that python sees the error message
as a single string.

Change-Id: Ib0561f93c76239b93000885250b3fa15ccaeb937
2013-11-16 15:13:07 +11:00
Jenkins
9a45f1c0b5 Merge "Updated gitblit projectname" 2013-11-16 00:36:29 +00:00
Jenkins
bc412dc7ba Merge "Added support for Git shallow clone parameter" 2013-11-16 00:34:16 +00:00
Jenkins
c39ce59377 Merge "New base class to declare test cases and tests to the node option" 2013-11-16 00:34:13 +00:00
Jenkins
b0048e2b50 Merge "Add CodeReview vote ability to the Gerrit trigger" 2013-11-16 00:30:08 +00:00
Peter Liljenberg
ec6128d4e3 Updated gitblit projectname
Change-Id: I373841676bc48c8531761af5fcc5192913262552
2013-11-15 19:54:46 +01:00
Jenkins
b3a28bd786 Merge "Fix format of debug message to be compatible with py2.6" 2013-11-14 14:37:34 +00:00
Felipe Reyes
f9cdbfd4d3 Added support for Git shallow clone parameter
Change-Id: Ia0251f25ff22fff10fe53ba6bf54f0e9072210fd
2013-11-14 14:02:18 +01:00
Felipe Reyes
894c72efcf New base class to declare test cases and tests to the node option
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
2013-11-14 13:53:23 +01:00
Jenkins
f896a484bd Merge "Make -o option required if using 'test' command" 2013-11-14 11:49:25 +00:00
Ondra Machacek
94a301b93d Fix format of debug message to be compatible with py2.6
In Python 2.6 we need indices in the format specs

Change-Id: Ia70c705e2cb9d7391a7fd257e3b6cc5cbbc5abb7
2013-11-14 12:33:55 +01:00
Jenkins
4aacd31888 Merge "Add build-publisher to jenkins-job-builder" 2013-11-14 11:25:53 +00:00
Jenkins
13625327e6 Merge "Add display-name job property." 2013-11-14 11:24:26 +00:00
Yolanda Robla
8bfa671220 Add build-publisher to jenkins-job-builder
Added new build-publisher following guidelines:
https://wiki.jenkins-ci.org/display/JENKINS/Build+Publisher+Plugin
Add to the list of publishers, implement module, provide tests

Change-Id: I7c130f4375cffc2a5e9acea6b417edc3e12886e7
Closes-Bug: #1234959
2013-11-14 11:39:30 +01:00
Jenkins
183f0cacf8 Merge "Inject passwords to the build as environment variables support added" 2013-11-13 22:41:05 +00:00
Johannes Erdfelt
df956e91d2 Make -o option required if using 'test' command
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
2013-11-13 08:52:48 -08:00
Benjamin Staffin
67cfe4ad0d Add display-name job property.
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
2013-11-05 19:04:54 -08:00
Jenkins
93cc27a6a3 Merge "Fix indentation in example of Logrotate section" 2013-11-05 15:29:57 +00:00
Benjamin Staffin
7267fd6305 Add CodeReview vote ability to the Gerrit trigger
- 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
2013-11-02 14:46:25 -07:00
Jenkins
43e4b606de Merge "Added default value of -1 for all logrotate attributes" 2013-11-01 04:50:41 +00:00
Jenkins
be22fc316b Merge "fix typo" 2013-10-31 23:51:43 +00:00
Jenkins
69ee9151f8 Merge "Jenkins Dynamic Parameter Plug-in support" 2013-10-31 23:39:07 +00:00
Mathieu Gagné
255eab8e4c Fix indentation in example of Logrotate section
Change-Id: I893a4c8638fd35a90e1e3361a473212db115f22e
2013-10-31 16:59:07 -04:00
DennyZhang
7530955593 fix typo
Change-Id: Ie8d6e35094a1bd0c970c8122b0a76bca1fba4f7f
2013-10-31 13:33:09 -05:00
Jenkins
4581b6b7a8 Merge "Adding support for the Build Result Trigger plugin" 2013-10-30 23:27:02 +00:00
Jenkins
e4ff36ec00 Merge "Jenkins Ownership Plugin" 2013-10-30 23:04:41 +00:00
Jenkins
279f06d4ef Merge "Added globbed parameters to the job specification" 2013-10-30 22:57:14 +00:00
Dzmitry Horbach
d614c8b3b9 Jenkins Dynamic Parameter Plug-in support
This change adds support for 4 parameters provided by Jenkins Dynamic Parameter Plug-in:
  - dynamic choice parameter
  - dynamic choice parameter (scriptler)
  - dynamic parameter
  - dynamic parameter (scriptler)

Change-Id: I77440af5bc089108b87ec6bc3c4db206c2600c00
2013-10-30 12:21:09 +03:00
Jenkins
3d9f66ea1c Merge "Make --delete-old more robust" 2013-10-28 22:38:20 +00:00
Dzmitry Horbach
f2b10c14a9 Added default value of -1 for all logrotate attributes
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
2013-10-28 12:18:07 +03:00
Dzmitry Horbach
fda1db4136 Inject passwords to the build as environment variables support added
Change-Id: I818783ac96a42d09083f253a9cfe1ab838dc6212
2013-10-26 21:22:54 +03:00
Jenkins
ee72a92936 Merge "publishers: correct XML element for boosttest xunit" 2013-10-25 19:17:31 +00:00
Jenkins
702fab9a57 Merge "Allow use template variables in dictionnary key" 2013-10-24 09:29:37 +00:00
Will Soula
80381a29d3 Adding support for the Build Result Trigger plugin
This changes adds the build result trigger plugin to trigger
a build when downstream jobs have a specific status

Change-Id: I00a0075ba625bc711f75a41e5202f93fbfdd0d8e
2013-10-23 12:29:06 -05:00
Mayeul d'Avezac
d23b0f36ed publishers: correct XML element for boosttest xunit
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
2013-10-23 11:12:01 +02:00
Alexander Braverman
e4b366bdc2 Jenkins Ownership Plugin
Plugin provides explicit ownership for jobs and slave nodes.
https://wiki.jenkins-ci.org/display/JENKINS/Ownership+Plugin

Change-Id: I6c47fb43f812c1ef15daecd53a52777dbd04805b
2013-10-19 13:00:49 +03:00
David Caro
4dd267ee0d Added globbed parameters to the job specification
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>
2013-10-18 17:05:25 +02:00
Doug Hellmann
49114e59e1 Make --delete-old more robust
Watch for parse errors when checking if a job is managed
by jjb.

Log the jobs that are ignored for removal.

Change-Id: I11207bdaf16b5645c37785bd31f2feb9d1bcae11
2013-10-16 21:28:08 -04:00
Jenkins
72d32db155 Merge "missing parameter error are no more meaningfull" 2013-10-16 17:43:23 +00:00
Mehdi Abaakouk
027d4644bf Allow use template variables in dictionnary key
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
2013-10-14 15:17:31 +02:00
Antoine Musso
b2b39c91f4 missing parameter error are no more meaningfull
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
2013-10-14 13:07:44 +02:00
Jenkins
85c0cf457b Merge "Add optional option to copyartifact plugin" 2013-10-14 10:17:41 +00:00
Jenkins
e43ef64500 Merge "Add repo scm" 2013-10-11 00:23:41 +00:00
Pierre Rognant
24e34e6cc9 Add optional option to copyartifact plugin
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
2013-10-08 11:24:04 -04:00
Jenkins
30b9a44560 Merge "Flow project support" 2013-10-05 00:05:44 +00:00
Pierre Rognant
822ecab7d0 Flow project support
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
2013-10-04 14:30:02 -04:00