<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python-jenkins-job-builder.git/tests/cmd/fixtures, branch 3.2.0</title>
<subtitle>patches to python-jenkins-job-builder package in Fedora</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/'/>
<entry>
<title>remove support of old plugin config format</title>
<updated>2019-04-16T01:08:05+00:00</updated>
<author>
<name>Sorin Sbarnea</name>
<email>ssbarnea@redhat.com</email>
</author>
<published>2018-07-16T15:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=71f1c89b657491f694095a0bc20828e09bfbc9ca'/>
<id>71f1c89b657491f694095a0bc20828e09bfbc9ca</id>
<content type='text'>
Remove code refering to old plugin config format.

Change-Id: Iba0922d3bfe066444e5e982c303968d15e1853a1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove code refering to old plugin config format.

Change-Id: Iba0922d3bfe066444e5e982c303968d15e1853a1
</pre>
</div>
</content>
</entry>
<entry>
<title>Add config options --jobs-only and --views-only</title>
<updated>2018-09-18T20:54:05+00:00</updated>
<author>
<name>Anil Belur</name>
<email>askb23@gmail.com</email>
</author>
<published>2018-09-10T05:31:44+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=9399b1f9868ce04d8c95cdd271d102947534411a'/>
<id>9399b1f9868ce04d8c95cdd271d102947534411a</id>
<content type='text'>
Add options --jobs-only and --views-only to job_builder
section in config file.

By default JJB updates both jobs and views. Some cases
non-admin users are not allowed to update views on Jenkins
which requires explicity using -j flag.

Allow users to set a config option 'update=jobs|views|all'
in the 'job_builder' section implicitly use --jobs-only or
--views-only and control these flags from the config file.

Note: CLI options takes precedence over the config file.

Change-Id: I2a94e5a2d671ccbfc505de2f19b578ecfef9e9d7
Co-Authored-By: Thanh Ha &lt;zxiiro@linux.com&gt;
Signed-off-by: Anil Belur &lt;askb23@gmail.com&gt;
Signed-off-by: Thanh Ha &lt;zxiiro@linux.com&gt;
Signed-off-by: Anil Belur &lt;askb23@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add options --jobs-only and --views-only to job_builder
section in config file.

By default JJB updates both jobs and views. Some cases
non-admin users are not allowed to update views on Jenkins
which requires explicity using -j flag.

Allow users to set a config option 'update=jobs|views|all'
in the 'job_builder' section implicitly use --jobs-only or
--views-only and control these flags from the config file.

Note: CLI options takes precedence over the config file.

Change-Id: I2a94e5a2d671ccbfc505de2f19b578ecfef9e9d7
Co-Authored-By: Thanh Ha &lt;zxiiro@linux.com&gt;
Signed-off-by: Anil Belur &lt;askb23@gmail.com&gt;
Signed-off-by: Thanh Ha &lt;zxiiro@linux.com&gt;
Signed-off-by: Anil Belur &lt;askb23@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Normalize newlines at end of file</title>
<updated>2018-06-29T20:07:06+00:00</updated>
<author>
<name>Sorin Sbarnea</name>
<email>ssbarnea@redhat.com</email>
</author>
<published>2018-06-29T14:56:27+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=c2781e670f9bb52427ed4632a421375aeaaee8ad'/>
<id>c2781e670f9bb52427ed4632a421375aeaaee8ad</id>
<content type='text'>
Preparatory move for adopting pre-commit hooks.
Shoudl only remove newlines and spaces at end of files.

Change-Id: Ia33679467c533722b9308f7e7b74be395c926428
Signed-off-by: Sorin Sbarnea &lt;ssbarnea@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Preparatory move for adopting pre-commit hooks.
Shoudl only remove newlines and spaces at end of files.

Change-Id: Ia33679467c533722b9308f7e7b74be395c926428
Signed-off-by: Sorin Sbarnea &lt;ssbarnea@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>No warn on old plugin conf format not in use</title>
<updated>2017-12-15T14:18:11+00:00</updated>
<author>
<name>Darragh Bailey</name>
<email>dbailey@hpe.com</email>
</author>
<published>2017-12-15T14:18:11+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=630fc6e88a77c0eab1bc8dd9d4f0c9df3a58508d'/>
<id>630fc6e88a77c0eab1bc8dd9d4f0c9df3a58508d</id>
<content type='text'>
Use a simple object to ensure matching against any default value is
possible to distinguish been not being set by a user versus use of
a negative default value passed.

This prevents triggering an incorrect notification to the user when
the code is querying for plugin options that could override the
default behaviour and the compatibility code attempts to look up an non
existing section. It would fail to distinguish between no section
present and current value to return matching the default value
suggested.

Change-Id: I5597c2628ccb5a4282a97a4ce5d3bbe41bd9eebb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use a simple object to ensure matching against any default value is
possible to distinguish been not being set by a user versus use of
a negative default value passed.

This prevents triggering an incorrect notification to the user when
the code is querying for plugin options that could override the
default behaviour and the compatibility code attempts to look up an non
existing section. It would fail to distinguish between no section
present and current value to return matching the default value
suggested.

Change-Id: I5597c2628ccb5a4282a97a4ce5d3bbe41bd9eebb
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Wrapper pre-scm-buildstep: added support for failOnError parameter"</title>
<updated>2017-03-29T09:55:34+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2017-03-29T09:55:34+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=4f77324feae72a0663441a6b47591409b4fb0396'/>
<id>4f77324feae72a0663441a6b47591409b4fb0396</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Wrapper pre-scm-buildstep: added support for failOnError parameter</title>
<updated>2017-03-28T17:10:29+00:00</updated>
<author>
<name>Sandro Gattuso</name>
<email>sandro.gattuso@gmail.com</email>
</author>
<published>2016-07-31T03:41:48+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=12c2ca33964ade24dc01fd8d79fa769759ba7495'/>
<id>12c2ca33964ade24dc01fd8d79fa769759ba7495</id>
<content type='text'>
- Added failOnError argument for pre-scm-buildstep
- Introduced buildsteps argument and moved list of build steps to match xml configuration of the preSCMbuildstep plugin.
- Updated existing test cases to match the new argument structure
- Added test case for pre-scm-buildstep to verify creation of failOnError tag
- Added verification on version to maintain retro-compatibility
- Updated documentation to fetch example from testcase definition

Change-Id: I25c19cd0552cf2de97b9c391492d95779c1360be
Task: 3163
Story: 2000690
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Added failOnError argument for pre-scm-buildstep
- Introduced buildsteps argument and moved list of build steps to match xml configuration of the preSCMbuildstep plugin.
- Updated existing test cases to match the new argument structure
- Added test case for pre-scm-buildstep to verify creation of failOnError tag
- Added verification on version to maintain retro-compatibility
- Updated documentation to fetch example from testcase definition

Change-Id: I25c19cd0552cf2de97b9c391492d95779c1360be
Task: 3163
Story: 2000690
</pre>
</div>
</content>
</entry>
<entry>
<title>Test stream no encoding bug</title>
<updated>2016-08-30T03:43:35+00:00</updated>
<author>
<name>Darragh Bailey</name>
<email>dbailey@hpe.com</email>
</author>
<published>2016-05-03T18:22:21+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=a949a274e3f9c07218ccc092ee55eac5a5562ab7'/>
<id>a949a274e3f9c07218ccc092ee55eac5a5562ab7</id>
<content type='text'>
Tests that if no encoding is defined on the output that JJB does not
accidentally trigger a recursion issue when iterating over a large
number of jobs and attempting to wrap the output stream.

Inspired by commit message from: https://review.openstack.org/283441

Change-Id: Ie69c3af0beb9fd7c589a436e8c6d2862210f8a4c
Co-Authored-By: Hao Liu &lt;hliu@redhat.com&gt;
Signed-off-by: Thanh Ha &lt;thanh.ha@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests that if no encoding is defined on the output that JJB does not
accidentally trigger a recursion issue when iterating over a large
number of jobs and attempting to wrap the output stream.

Inspired by commit message from: https://review.openstack.org/283441

Change-Id: Ie69c3af0beb9fd7c589a436e8c6d2862210f8a4c
Co-Authored-By: Hao Liu &lt;hliu@redhat.com&gt;
Signed-off-by: Thanh Ha &lt;thanh.ha@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure flush cache option obeyed</title>
<updated>2016-07-22T16:55:22+00:00</updated>
<author>
<name>Darragh Bailey</name>
<email>dbailey@hpe.com</email>
</author>
<published>2016-07-22T15:55:27+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=652806a7513d017529774854965cf41ad60f6ef1'/>
<id>652806a7513d017529774854965cf41ad60f6ef1</id>
<content type='text'>
Make sure that flush cache is correct set first by config file, and
additionally that the CLI overrides any defaults.

In the V2 API work, when moving code around the flush cache option was
accidentally removed from being set by the command line or config
files. This ensures it follows the same behaviour as other similar
options.

Change-Id: I9fb1e234e5ed081ada64855389a87d2f7555469e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure that flush cache is correct set first by config file, and
additionally that the CLI overrides any defaults.

In the V2 API work, when moving code around the flush cache option was
accidentally removed from being set by the command line or config
files. This ensures it follows the same behaviour as other similar
options.

Change-Id: I9fb1e234e5ed081ada64855389a87d2f7555469e
</pre>
</div>
</content>
</entry>
<entry>
<title>Untangle argparser and config objects</title>
<updated>2016-07-22T14:45:48+00:00</updated>
<author>
<name>Darragh Bailey</name>
<email>dbailey@hpe.com</email>
</author>
<published>2016-07-08T18:10:40+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=70334fbf4b21ce6ca3adb4f7d3d25b2da1286ed5'/>
<id>70334fbf4b21ce6ca3adb4f7d3d25b2da1286ed5</id>
<content type='text'>
Ensure that argparser object only makes use of the JJBConfig object
instead of leaking a command line parser into a config object for API
usage.

Take care to use 'None' as default for store_true/store_false options
in order to ensure that the config file defaults are only overridden
when CLI options are explicitly set.

Change-Id: I4066ad750f9893759c2e9bdfde425fafacc7e672
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure that argparser object only makes use of the JJBConfig object
instead of leaking a command line parser into a config object for API
usage.

Take care to use 'None' as default for store_true/store_false options
in order to ensure that the config file defaults are only overridden
when CLI options are explicitly set.

Change-Id: I4066ad750f9893759c2e9bdfde425fafacc7e672
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce modular implementation of subcommands.</title>
<updated>2016-07-08T16:55:44+00:00</updated>
<author>
<name>Wayne</name>
<email>wayne@puppetlabs.com</email>
</author>
<published>2015-05-05T17:23:24+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=fc73cedb45ab554a84a52d89628af76ca97cc3b6'/>
<id>fc73cedb45ab554a84a52d89628af76ca97cc3b6</id>
<content type='text'>
This commit intentionally introduces a number of important API
breakages. Specifically, the jenkins_jobs.cmd module has been pared
down to some of its most difficult-to-refactor elements.

* Create jenkins_jobs.cli.entry.JenkinsJobs class to organize command
  line parsing and execution.
* Remove references to ConfigParser object in test code, hidden as an
  implementation detail of JenkinsJobs command line parsing. This will
  be necessary in the next stage of JJB 2.0 code which will be to
  create a JJBConfig object that handles logic and presentation of
  configuration from various sources--defaults, command line
  arguments, configuration file, and maybe environment variables in
  the future.
* Remove references to Namespace object produced by argparse module.
  Required rewrite of multipath &amp; recursive path tests with a new
  MatchesDir testtools Matcher class that validates the expected
  output for a run of JJB against a given set of yamldirs with the
  specified command line arguments.
* Use stevedore to dynamically load subcommand parsers.
* Move configuration loading/testing to its own test file. Also fix
  the global vs home directory JJB config file test.

Change-Id: If62280418ba7319c313033ab387af4284237747e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit intentionally introduces a number of important API
breakages. Specifically, the jenkins_jobs.cmd module has been pared
down to some of its most difficult-to-refactor elements.

* Create jenkins_jobs.cli.entry.JenkinsJobs class to organize command
  line parsing and execution.
* Remove references to ConfigParser object in test code, hidden as an
  implementation detail of JenkinsJobs command line parsing. This will
  be necessary in the next stage of JJB 2.0 code which will be to
  create a JJBConfig object that handles logic and presentation of
  configuration from various sources--defaults, command line
  arguments, configuration file, and maybe environment variables in
  the future.
* Remove references to Namespace object produced by argparse module.
  Required rewrite of multipath &amp; recursive path tests with a new
  MatchesDir testtools Matcher class that validates the expected
  output for a run of JJB against a given set of yamldirs with the
  specified command line arguments.
* Use stevedore to dynamically load subcommand parsers.
* Move configuration loading/testing to its own test file. Also fix
  the global vs home directory JJB config file test.

Change-Id: If62280418ba7319c313033ab387af4284237747e
</pre>
</div>
</content>
</entry>
</feed>
