7 Commits

Author SHA1 Message Date
Guido Günther
04052d8769 project_maven: allow to set private repository
The values map to these GUI choices

 * default            -> Default
 * local-to-executor  -> Local to the executor
 * local-to-workspace -> Local to the workspace

This is on the project level what the similar option is on the builder
level.

Change-Id: I90ee3385ee12a46b5ab1eb26e3af1bdbfc36946a
2014-01-27 23:32:50 +01:00
Guido Günther
828e134c7e project_maven: Don't require artifact-id and group-id
Jenkins will determine the values from the pom automatically so there's
no need to require them.

Change-Id: Ic1c9c26a05e335fd78a92fe4316ecc88b3f209b9
2014-01-23 08:38:52 +01:00
Guido Günther
d1846e7dfc tests: Allow to test project parameters
So far it wasn't possible to test the prameters of the
project itself. While If7b749dae7631e8714a9416dfbd82d2443c0302c
already made the job creation consistent this goes one step further
and creates the root_xml using the project's root_xml method.

Change-Id: Ieba4203d3d23ad68df5a1246e90ea8c03ddd54d4
2014-01-23 08:38:51 +01:00
Khai Do
b47fe61905 make job creation consistent
Defining a project (in yaml) without setting any other parameters should
generate a basic jenkins job (in xml).  While this works for freestyle jobs,
jjb will throw an error for maven and flow projects.  The behavior should be
consistent across all types of projects.  This patch just makes it so
that the behavior is consistent.

Change-Id: If7b749dae7631e8714a9416dfbd82d2443c0302c
2014-01-22 15:21:14 -08:00
Kei YAMAZAKI
604d39305b Fix multibyte character problem
Fixed problem that causes a UnicodeEncodeError when use multi-byte characters in the job.yml.

Change-Id: Ie715c827a794e73fae11cdca079ea80cfb8c280d
2014-01-21 22:34:30 +09:00
Khai Do
b790bbc681 update doc and add new JJB unit tests
Add documentation on how to generate documentation and run JJB unit tests.

Also added a unit tests for each category of plugins as examples for others
to follow when adding new JJB plugins.  I'm hoping this will help contributors
add tests for new plugins going forward.

Change-Id: I2ab90cdb37d0f3b1e947345d4291d2927b04a0c6
2013-11-22 17:51:17 +00: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