7 Commits

Author SHA1 Message Date
Ayoub Elhamdani
e0f19f39cd Delete old managed folders when calling update subcommand with --delete-old option
This should be merged first https://review.openstack.org/#/c/519340/

Change-Id: I8ed1540b024bfcfaad1221d4e4a0da4a56b56c3c
Task: 5834
Story: 2001286
2018-04-05 11:36:36 +00:00
Darragh Bailey
af9d984baa
Basic folder support
Allows specifying a folder attribute for each job generated, which in
turn is used when creating or uploading to place the job under the
requested folder.

The job name is expanded after defaults are applied, to support the
attribute being defined within a set of defaults applied to a number of
jobs.

This in turn allows for multiple jobs with the same basename to exist,
provided they are targeted at different folders.

Does not support creating the folders if they do not exist.

Change-Id: I8c2157c4c81087cc972a048d1b88d5f08ac65361
2017-10-23 13:29:21 -04:00
zhangyangyang
8744b5b1a5 change assert(Not)Equals to assert(Not)Equal
According to http://docs.python.org/2/library/unittest.html
assert(Not)Equals is a deprecated alias of assert(Not)Equal.

Change-Id: Ibadf2b2c6cb09db6f5cc191240aad2ac8cb4ea33
Closes-Bug: #1329757
2017-09-13 17:24:13 +08:00
Daniel Watkins
cc200dade0 Use default plugin list when listing Forbidden
Listing the plugins installed on a Jenkins instance requires full
administrative permissions.  For cases where we don't have permission to
read the plugin list, we should just fall back to the default list.

Story: 2000618
Task: 3052

Change-Id: I924f237f5f175216200668d133092f2357f6d9d3
2017-07-31 09:53:12 -04:00
Sorin Sbarnea
8a7d77c180 Removed some deprecation warnings and enabled py35 on tox.
Change-Id: Icc5b28c4636b542a10502b7b1d2d2dc2028cc166
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2017-03-12 19:43:33 +00:00
Darragh Bailey
bfb18520e6 Ensure keep is an iterable
If no value is provided for 'keep' when calling delete_old_managed,
ensure a default empty iterable is used to prevent an exception.

Change-Id: I3110f8e03e287a6ff067b992ed8631e34121a8d2
2016-11-14 13:40:03 +00:00
Darragh Bailey
949a3a61e1 Rename JenkinsManager tests
Change-Id: I3d372dd4697e65ba6a539d1e04c54a7d0143f62e
2016-11-14 13:16:57 +00:00