Adds support for extended choice parameters with regards to default groovy scripts.
Change-Id: I9d2a61013f041e7b81a80b5618781dbefeace329
Story: #2001931
Task: #14461
Adds a yaml application tag '!join:' to support defining data as a list
while having the resulting contents automatically joined together with
the specified delimiter and passed as a string into the resulting object
returned by yaml for JJB to process.
This allows users to store long lists of data that is combined together
for use with Jenkins plugins that expect a delimited string of arguments
instead of needing each module in JJB to provide individual support.
Change-Id: I745181ade3926d5c29708963189ae499a0378ece
Additionally update the plugin to use convert_mapping_to_xml and add
min/max tests.
Change-Id: I8f0a9054c12ea984a286aea1012513baac07479f
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Adds support for the 'credentials' parameter type for job
definitions. Requires the Jenkins Credentials Plugin.
Change-Id: I5e410668caed9e95bed7afb02341a456d2ece5e3
Story: 2000761
Refactor base test class inheritance to allow for BaseTest class to be
reused without needing to also import the TestCase class everywhere in
order to avoid having the common test function executed on base classes.
This makes it easier to build base testing classes and then simplifies
the subclassing of these for actual tests.
Change-Id: I89809e8082469f814f245db4a9ab7658aac8a405
Capture logs to attach them on exceptions to simplify the debugging of
errors in tests when they occur.
Change-Id: I5c1b5c306aba37789a8d41eabf65e0ac628af838
Current version of Extended Choice Parameter jenkins plugin
has a feature which you could give descriptions to assign descriptions
to choice values. However current version of jenknis-job-builder does
no support this feature. Add this feature into this commit. It will introduce
three new xml nodes to the generated xml:
<descriptionPropertyValue/>
comma separated list of value descriptions
<descriptionPropertyFile/>
description property file
<descriptionPropertyKey/>
key in the description property file
Change-Id: Ie464a510edf01e21c7e96df2003f2c5f7fb15720
This parameter defines a list of nodes where this job could potentially
be executed on. Nodes can be choosen from list of current available nodes.
Currently it trasforms to single-selection dropdown to choose a slave for execution.
Change-Id: I5379d20b94e3b33360ea8f842e3b4237b491addb
This patch fixes support for the extended choice plugin in the
parameter module so that it can nicely coexist with the other
parameters. This leaves the existing extended choice plugin code in the
properties module, but removes the documentation from that location and
adds a deprecation warning. This patch also provides parity with the
existing functionality under the properties module.
Change-Id: Ibace4284fc1bd391948917979a4223bd3007dff4
Closes-Bug: #1361335
This plugin allows a user to choose which matrix combinations
they want to run, as opposed to the default behaviour where
jenkins runs all combinations
Requires the Jenkins Matrix Combinations Plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Matrix+Combinations+Plugin
Change-Id: I13205c81aa11523a4c3fc373820eb74863d0c7ca
Defines a run parameter for parametrized build, where users can pick a
single run of another project. The absolute url of this run will be
exposed as an environment variable.
Change-Id: I86bc3109b00259f9fe3dcf7ab9d72cb1f22fadc2
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