releng/lftools.git
6 years agoAdd tag to Nexus docs 72/11572/1
Jessica Wagantall [Wed, 27 Jun 2018 00:49:57 +0000 (17:49 -0700)]
Add tag to Nexus docs

Add tag to Nexus commands documentation

Change-Id: Iba783cd83398d3ece0d73b94c8d2e716c35d5392
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoUpdate Nexus settings example 57/11557/1
Jessica Wagantall [Tue, 26 Jun 2018 18:31:17 +0000 (11:31 -0700)]
Update Nexus settings example

Update Nexus settings.example.yaml file to match
the convention used in the public docs when referring to
a project's domain.
Also, update http to https.

Change-Id: I7cc2e717ba507ea7d7eee577de9744ee57b2e0fd
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoPrint result of groovy script to console 57/11157/1
Thanh Ha [Sun, 10 Jun 2018 23:16:42 +0000 (19:16 -0400)]
Print result of groovy script to console

Change-Id: I84824c34c8d13df55a40b8409a9174055ab8e5a9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoIgnore protected images that are protected 52/11152/1
Thanh Ha [Sat, 9 Jun 2018 18:18:03 +0000 (14:18 -0400)]
Ignore protected images that are protected

Print a warning to inform the caller that we cannot delete
images that are protected.

Change-Id: I236f6f55964f483016500b58cbeb48fd8665b62b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoPin python-jenkins to 0.4.16 06/11106/2
Thanh Ha [Thu, 7 Jun 2018 20:07:16 +0000 (16:07 -0400)]
Pin python-jenkins to 0.4.16

It seems python-jenkins 1.0.0 broke the run_scripts() function which
we use to run the jenkins-cfg commands. Pin to the older version
until we figure out why.

Change-Id: I9e643e3aafbc9eb680fd3b8181a0d8b4806060ac
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to 0.14.0-dev 41/10941/2
Thanh Ha [Fri, 1 Jun 2018 17:52:24 +0000 (13:52 -0400)]
Bump version to 0.14.0-dev

Change-Id: Ib4313b61d77593aa9c1cf4256aef5ceec1bc1941
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.13.0 31/10931/1 v0.13.0
Thanh Ha [Fri, 1 Jun 2018 16:14:41 +0000 (12:14 -0400)]
Release lftools v0.13.0

Change-Id: If195384c5e9c624d61aa7f1ecccf9268d134c1b3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoSimplify Nexus 2 repo target regex 55/9855/4
Thanh Ha [Mon, 9 Apr 2018 18:14:47 +0000 (14:14 -0400)]
Simplify Nexus 2 repo target regex

Add unit test to check real world artifact paths against the regex
pattern.

Issue: RELENG-758
Change-Id: I580fef69ef03d9cf85c59da250fdfee66fcb7ad5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMake OpenStack requirements optional 79/6879/9
Thanh Ha [Sat, 14 Oct 2017 15:56:22 +0000 (11:56 -0400)]
Make OpenStack requirements optional

Users can now `pip install lftools[openstack]` as an optional
dependency so that we don't have to download the entire openstack
shade depchain.

Change-Id: Icf0065eeb1bf97f92560434edec3576397223af7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMerge changes I84773de5,I91de27b2
Jamo Luhrsen [Fri, 27 Apr 2018 17:37:54 +0000 (17:37 +0000)]
Merge changes I84773de5,I91de27b2

* changes:
  Add test for latest upstream of dependencies
  Move tests requirements to separate file

6 years agoMerge "Fail Sphinx build even on warnings"
Thanh Ha [Fri, 27 Apr 2018 15:07:48 +0000 (15:07 +0000)]
Merge "Fail Sphinx build even on warnings"

6 years agoAdd test for latest upstream of dependencies 26/10226/1
Thanh Ha [Mon, 23 Apr 2018 19:49:03 +0000 (15:49 -0400)]
Add test for latest upstream of dependencies

Useful for identifying potential issues if we were to bump versions
of upstream projects that we have pinned.

Change-Id: I84773de551f2bb882c14e5531657c0a37fce70c7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMove tests requirements to separate file 25/10225/1
Thanh Ha [Mon, 23 Apr 2018 19:53:54 +0000 (15:53 -0400)]
Move tests requirements to separate file

Will be used later so we can add additional tests that depend on
this file.

Change-Id: I91de27b2024050894ba5ddeef5ec849074811f9b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRemove trailing slashes in nexus_url 05/10205/1
Thanh Ha [Tue, 24 Apr 2018 16:53:33 +0000 (12:53 -0400)]
Remove trailing slashes in nexus_url

lftools should not fail if the user passes extra trailing slashes that
the command was not expecting.

Change-Id: I9a32c48ddd5ee2898816db7faaeb0de805a38b3c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMerge "Pin requests and python-jenkins"
Jamo Luhrsen [Mon, 23 Apr 2018 20:30:47 +0000 (20:30 +0000)]
Merge "Pin requests and python-jenkins"

6 years agoAdd pytest cache to .gitignore 97/10197/1
Thanh Ha [Mon, 23 Apr 2018 19:57:16 +0000 (15:57 -0400)]
Add pytest cache to .gitignore

Change-Id: Ie3ff833149896f6beab8eb137f049a288538ff90
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoPin requests and python-jenkins 96/10196/1
Thanh Ha [Mon, 23 Apr 2018 19:38:23 +0000 (15:38 -0400)]
Pin requests and python-jenkins

Change-Id: Ic830bad231d98efe721a299f18f634d87aad5e9f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoFail Sphinx build even on warnings 82/10182/1
Thanh Ha [Fri, 20 Apr 2018 18:45:46 +0000 (14:45 -0400)]
Fail Sphinx build even on warnings

Change-Id: I935e57b4536f58eb71b49d6558fefc170d50a8da
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to 0.13.0-dev 74/10074/1
Thanh Ha [Tue, 17 Apr 2018 17:20:43 +0000 (13:20 -0400)]
Bump version to 0.13.0-dev

Change-Id: I8f643e0a9b6fefce7c723d4b46b955df4334dbb8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.12.4 73/10073/1 v0.12.4
Thanh Ha [Tue, 17 Apr 2018 18:56:54 +0000 (14:56 -0400)]
Release lftools v0.12.4

Change-Id: If4fba3ca0b18bf785ed421ff42c20f20f608f9ca
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoFix remove volume time format 72/10072/1
Thanh Ha [Tue, 17 Apr 2018 18:56:11 +0000 (14:56 -0400)]
Fix remove volume time format

Created_at also uses a different time format that needs to be
addressed.

Change-Id: I5618a5f1ce3fdf0d49ce01cbad47683cf8e02762
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to 0.13.0-dev 70/10070/1
Thanh Ha [Tue, 17 Apr 2018 17:20:43 +0000 (13:20 -0400)]
Bump version to 0.13.0-dev

Change-Id: Ie73dfc81edc257dea06450bd236d98746cd35290
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.12.3 68/10068/1 v0.12.3
Thanh Ha [Tue, 17 Apr 2018 18:19:16 +0000 (14:19 -0400)]
Release lftools v0.12.3

Change-Id: Ie38022c49c78a5a1ebe12ba596b339b3a9e110b7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoFix volume remove command polling wrong metadata 67/10067/1
Thanh Ha [Tue, 17 Apr 2018 18:18:18 +0000 (14:18 -0400)]
Fix volume remove command polling wrong metadata

Volumes use created_at instead of created.

Change-Id: I53a11dc791ee2d4035f9b641f97c019f2f19610f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to 0.13.0-dev 63/10063/1
Thanh Ha [Tue, 17 Apr 2018 17:20:43 +0000 (13:20 -0400)]
Bump version to 0.13.0-dev

Change-Id: Ice5411654c110e4630c1e8d95796c5bfa02f40b8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.12.2 62/10062/1 v0.12.2
Thanh Ha [Tue, 17 Apr 2018 17:03:04 +0000 (13:03 -0400)]
Release lftools v0.12.2

Change-Id: I76af823e2c391e3ecf4ab7f5738a642cd554401f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAdd support for volume management 54/10054/3
Thanh Ha [Tue, 17 Apr 2018 15:39:20 +0000 (11:39 -0400)]
Add support for volume management

Issue: RELENG-853
Change-Id: Id412315238abfdea9f655dfeb2957964b37d5f19
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to 0.13.0-dev 35/8835/1
Thanh Ha [Tue, 13 Feb 2018 17:06:00 +0000 (12:06 -0500)]
Bump version to 0.13.0-dev

Change-Id: Iac54f1c832e159fc960a18de4191052a67ba82dd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.12.1 34/8834/1 v0.12.1
Thanh Ha [Tue, 13 Feb 2018 16:26:58 +0000 (11:26 -0500)]
Release lftools v0.12.1

Change-Id: I9aed03e79c38ef2823722e3a76be4bb45f47b549
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoPin netifaces to 0.10.5 33/8833/1
Thanh Ha [Tue, 13 Feb 2018 16:25:28 +0000 (11:25 -0500)]
Pin netifaces to 0.10.5

netifaces decided to release a repackaging of 0.10.6 this morning
that broke us. Let us add them to the pinned deps list to resolve
the issue.

Change-Id: Id67c3bdc9e7da252892c1a1e7514dc25e7c2ae05
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to 0.13.0-dev 28/8828/1
Thanh Ha [Mon, 12 Feb 2018 22:51:17 +0000 (17:51 -0500)]
Bump version to 0.13.0-dev

Change-Id: I90cd117ed3d436cbebb38e359b7e32b23df157f1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.12.0 85/8785/1 v0.12.0
Thanh Ha [Fri, 9 Feb 2018 19:11:03 +0000 (14:11 -0500)]
Release lftools v0.12.0

Change-Id: Ifa0a9344badb1ca942707b833cd71a77dc3f4a9e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAdd lftools command to remove specific server 25/8725/3
Thanh Ha [Wed, 7 Feb 2018 16:09:57 +0000 (11:09 -0500)]
Add lftools command to remove specific server

This command also supports an optional minutes parameter which
can be used to ignore the server if it is not older than a certain
number of minutes.

This is useful for cases like Jenkins orphan server cleanup scripts
so that they do not try to remove servers that have just been
spawned and have not yet connected to Jenkins causing the server to
be mistakenly marked as orphaned.

Issue: RELENG-780
Change-Id: I7f12218e0ac730ff43def4ec9b6133b4cc8ee0c8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to 0.12.0-dev 28/8628/1
Thanh Ha [Thu, 1 Feb 2018 00:42:50 +0000 (19:42 -0500)]
Bump version to 0.12.0-dev

Change-Id: Ie320efc1e9917751505b071df0cc59e09791d1d1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.11.2 27/8627/1 v0.11.2
Thanh Ha [Thu, 1 Feb 2018 00:41:32 +0000 (19:41 -0500)]
Release lftools v0.11.2

Change-Id: I0361a50e1aa239e97185809124cd8df8be9b8b56
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoupload_to_nexus to return a non-zero exit status 22/8622/2
Robert Varga [Wed, 31 Jan 2018 11:03:28 +0000 (12:03 +0100)]
upload_to_nexus to return a non-zero exit status

As it turns out Nexus does not produce a http status code on upload
failure and returns back a blank message. This means if we do not
detect a successful status from Nexus we need to exit 1 explicity
to make sure we return to parallel a proper error status code.

JIRA: RELENG-765
Change-Id: Ic221c668bb6cd35befc614159ee8d7220d3f4cfe
Co-authored-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Robert Varga <nite@hq.sk>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoSwitch to using lfdocs-conf 0.1.3 24/8524/1
Thanh Ha [Thu, 25 Jan 2018 02:41:44 +0000 (21:41 -0500)]
Switch to using lfdocs-conf 0.1.3

Change-Id: If0ad2ba50ffa6f5ecdb0fb3a06563706b56c4015
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAdd a groovy command to lftools 33/8433/1
Thanh Ha [Thu, 18 Jan 2018 22:03:01 +0000 (17:03 -0500)]
Add a groovy command to lftools

Using python-jenkins' run_groovy API to allow us to execute
groovy scripts from lftools.

Change-Id: If5afb69b738a0cee6ee653b5d70ba9b5dac67fd0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoSwitch lftools to lfdocs-conf 13/8413/1
Thanh Ha [Wed, 17 Jan 2018 03:16:52 +0000 (22:16 -0500)]
Switch lftools to lfdocs-conf

Consolidate conf.py into lfdocs-conf project.

Change-Id: I51c0931d5bc03cc71d10edca73a46379cf02ac2e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoImprove debugging output for deploy nexus-zip cmd 17/8317/5
Thanh Ha [Tue, 9 Jan 2018 21:38:32 +0000 (16:38 -0500)]
Improve debugging output for deploy nexus-zip cmd

Print out the HTTP Status code as well as the http response from
the server (if any, Nexus doesn't always return any) and the
contents of the zip file on failure.

Issue: RT-50048
Change-Id: I54014819d18c0090c45fd8378954dc9aa5e540f8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoFix ShellCheck v0.4.7 lint issues 20/8320/1
Thanh Ha [Tue, 9 Jan 2018 23:21:41 +0000 (18:21 -0500)]
Fix ShellCheck v0.4.7 lint issues

v0.4.7 introduces some new rules which now need to be handled.

Change-Id: I9c769bd819b787d817ef7708c312e9c637ee7dfc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to v0.12.0-dev 93/8293/1
Thanh Ha [Mon, 8 Jan 2018 16:22:26 +0000 (11:22 -0500)]
Bump version to v0.12.0-dev

Change-Id: Id5606835c44a5771025154b732aa49343627a922
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.11.1 92/8292/1 v0.11.1
Thanh Ha [Mon, 8 Jan 2018 16:09:21 +0000 (11:09 -0500)]
Release lftools v0.11.1

Change-Id: I4eb27f0dbb3ccb2632b93be0f09830755ff67125
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMerge "Fix wget command for Nexus sign script"
Thanh Ha [Wed, 3 Jan 2018 19:40:13 +0000 (19:40 +0000)]
Merge "Fix wget command for Nexus sign script"

6 years agoFix wget command for Nexus sign script 73/7573/3
Jessica Wagantall [Thu, 16 Nov 2017 03:57:54 +0000 (19:57 -0800)]
Fix wget command for Nexus sign script

Add --level=15 to wget command that fetches the
autoreleases from Nexus. Looks like the previous
command wasn't fetching all the artifacts in the
autorelease tree.

Change-Id: Ieb49331d7b192187ba2e6783b334d90c6477503e
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoPrint CPU, Memory, Disk and Network stats 46/8046/1
Anil Belur [Mon, 18 Dec 2017 21:58:33 +0000 (07:58 +1000)]
Print CPU, Memory, Disk and Network stats

Print sar CPU, Memory, Disk, Network statistics at end of console log

JIRA: RELENG-672
Change-Id: I42aae6a07a91e7a666b28fcd027a5c0a91a8e64c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoBump version to v0.12.0-dev 18/7918/1
Thanh Ha [Mon, 11 Dec 2017 17:59:57 +0000 (12:59 -0500)]
Bump version to v0.12.0-dev

Change-Id: I37dfe4d790490aa3d40216c7034c77f3d830a5a0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.11.0 17/7917/1 v0.11.0
Thanh Ha [Mon, 11 Dec 2017 17:46:11 +0000 (12:46 -0500)]
Release lftools v0.11.0

Change-Id: If40b6319e21f6d42eb770a22de2b93677a6eb87f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAutomatically hide protected images 87/7887/2
Thanh Ha [Sat, 9 Dec 2017 01:45:25 +0000 (20:45 -0500)]
Automatically hide protected images

We are not able to delete protected images so automatically filter
them out of our results.

Issue: RELENG-705
Change-Id: Id7fa5ab73ec912aac9b04dfb30c29492320402f2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoUpdate openstack cmd to support ci_managed filter 86/7886/2
Thanh Ha [Sat, 9 Dec 2017 01:40:13 +0000 (20:40 -0500)]
Update openstack cmd to support ci_managed filter

Add support for filtering ci_managed metadata when querying for
images.

Issue: RELENG-705
Change-Id: I9570a0683e1d87547bda8fc6741369549450045e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoSuppress GNU parallel notice on every run 41/7541/3
Anil Belur [Wed, 15 Nov 2017 05:23:16 +0000 (15:23 +1000)]
Suppress GNU parallel notice on every run

By default the notice is output on every run, therefore
use the `--no-notice` option to supress the output.

Change-Id: Id1dbe7b8daee390c886486eeb3c4c3c436fc26e4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoAdd a snapshot mode to the deploy-nexus command 21/7221/1
Thanh Ha [Wed, 1 Nov 2017 18:28:03 +0000 (14:28 -0400)]
Add a snapshot mode to the deploy-nexus command

This is necessary for RELENG-61 in order to allow pushing
maven-metadata.xml files which in the case of release jobs should not be
allowed. So add an option to the deploy-nexus command to allow an
exception for snapshot artifacts.

Issue: RELENG-173
Change-Id: I6f086bd0987502c5a967ab0b6f313ac405ceabc5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoFail gracefully when no files to sign 31/6931/2
Thanh Ha [Tue, 17 Oct 2017 02:14:01 +0000 (22:14 -0400)]
Fail gracefully when no files to sign

Fixes issue where if there are no files to sign detected the script just
hangs indefinitely. Instead if the files_to_sign array is empty then
exit 1 and inform user.

Change-Id: I82a5957faedfe739800305a8224fed67d2c74801
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoUse parallel to sign when available 30/6930/2
Thanh Ha [Tue, 17 Oct 2017 01:45:02 +0000 (21:45 -0400)]
Use parallel to sign when available

Speed up the signing process by using parallel when available.

Change-Id: I8a4bebde397b59491039ef6591796f3bfb1db2e8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump version to v0.11.0-dev 17/6917/1
Thanh Ha [Mon, 16 Oct 2017 18:51:34 +0000 (14:51 -0400)]
Bump version to v0.11.0-dev

Change-Id: Ia83890a4ee3c2119d18d6e50845e07b487068002
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lftools v0.10.0 84/6884/2 v0.10.0
Thanh Ha [Sun, 15 Oct 2017 18:08:36 +0000 (14:08 -0400)]
Release lftools v0.10.0

Change-Id: I0e203548adad9057d58d7893ba86eb594cdddfea
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRename docs requirements for better sorting 80/6880/2
Thanh Ha [Sat, 14 Oct 2017 15:57:33 +0000 (11:57 -0400)]
Rename docs requirements for better sorting

Change-Id: Ie1fb5e86aa22d49c7d144f85a6f1fbf0340360f8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAdd LF Logo 74/6874/3
Thanh Ha [Sat, 14 Oct 2017 14:59:35 +0000 (10:59 -0400)]
Add LF Logo

Change-Id: Ia82ca35196630689f67f8b1b6fb5f2091a6e5c6d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAdd custom navbar ala OpenDaylight docs 72/6872/3
Thanh Ha [Sat, 14 Oct 2017 14:50:06 +0000 (10:50 -0400)]
Add custom navbar ala OpenDaylight docs

Change-Id: I2af32b6847a6dd1242efd6b9c320a22eff0d8d76
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump Sphinx minimal dependencies to latest 75/6875/3
Thanh Ha [Sat, 14 Oct 2017 15:06:57 +0000 (11:06 -0400)]
Bump Sphinx minimal dependencies to latest

Also splits out docs requirements to docs-requirements.txt to avoid
coala failing to run because of version conflict with Sphinx version we
want to use for docs.

Change-Id: I64d0b5953be03f91bf67e75e54072d1da9df5d1a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRemove best practices guide from lftools 56/6856/1
Thanh Ha [Fri, 13 Oct 2017 18:35:35 +0000 (14:35 -0400)]
Remove best practices guide from lftools

The guide sections were divided out and moved to either releng/docs or
releng/global-jjb depending on context.

Issue: RELENG-507
Change-Id: I4eb4b0fe2820415a3e4bda8a98b2a2d5fed3f78f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAdd cross link 53/6853/1
Thanh Ha [Fri, 13 Oct 2017 18:15:00 +0000 (14:15 -0400)]
Add cross link

Issue: RELENG-507
Change-Id: I925889331d7904f2b85e5a16a1c581b32893779b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoUpdate setuptools version 13/6813/4
Ry Jones [Thu, 12 Oct 2017 01:11:57 +0000 (18:11 -0700)]
Update setuptools version

Hyperledger builds fail on the Z platform with versions
of setuptools < 30.

FAB-6595

Change-Id: I6889507870f66e6b44720579f8be7b0b35b7c7a9
Signed-off-by: Ry Jones <rjones@linuxfoundation.org>
7 years agoRefactor descriptions to README.md and __summary__ 17/6317/3
Thanh Ha [Tue, 5 Sep 2017 17:41:37 +0000 (13:41 -0400)]
Refactor descriptions to README.md and __summary__

This change makes it so that the __summary__ is a pydoc variable and we
can pull in the long description directly from README.md. Also add a
website url.

Change-Id: Ibab9e436d4e2c8188a456976e1ab5f19dbf88060
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRe-order log ENV stripping and add new key 32/6432/1
Andrew Grimberg [Fri, 8 Sep 2017 21:16:31 +0000 (14:16 -0700)]
Re-order log ENV stripping and add new key

* Make the environment stripping be asciibetical so it's easier to know
where to insert new elements

* Add KEY as an environment variable base to be stripped from the
shipped logs

Change-Id: I46367ec36c44b5b29534fff7f86356e8b9abffcb
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agoMerge "Update JJB best practices"
Thanh Ha [Thu, 7 Sep 2017 01:15:36 +0000 (01:15 +0000)]
Merge "Update JJB best practices"

7 years agoUpdate JJB best practices 26/6326/5
Anil Belur [Wed, 6 Sep 2017 14:11:22 +0000 (00:11 +1000)]
Update JJB best practices

Using single quotes around variables.

Update parameter passing section to avoid using `!include-raw`.

Also remove single quotes around examples where its not required.

Change-Id: I176c861a90fcea29c3fd77308287f241e9f26a6c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoSpell check fixes in best practices 25/6325/1
Anil Belur [Wed, 6 Sep 2017 06:01:18 +0000 (16:01 +1000)]
Spell check fixes in best practices

Change-Id: Ibcc86f61181edcfad09cc1cdc056b1b4c8a09954
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoBump version to 0.10.0-dev for next dev cycle 16/6316/1
Thanh Ha [Tue, 5 Sep 2017 17:41:20 +0000 (13:41 -0400)]
Bump version to 0.10.0-dev for next dev cycle

Change-Id: I784869e966f1bb12842663b9386c275dacc59fb6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease lftools v0.9.0 14/6314/1 v0.9.0
Thanh Ha [Tue, 5 Sep 2017 16:07:27 +0000 (12:07 -0400)]
Release lftools v0.9.0

Change-Id: I34c8b9db49b7942329f911e5671fd7dff84402dd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoExit script with error if artifacts fail download 26/6226/2
Thanh Ha [Tue, 29 Aug 2017 20:21:36 +0000 (16:21 -0400)]
Exit script with error if artifacts fail download

Improve error checking to handle a potential error case.

Change-Id: I8ac39a0c5c84f6b23ea60a5c8e6601be76bf6afc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUse gpg2 if available 25/6225/1
Thanh Ha [Tue, 29 Aug 2017 19:57:07 +0000 (15:57 -0400)]
Use gpg2 if available

Prefer gpg2 over gpg if it is available. In some systems such as Arch
Linux gpg is gpg2. We really only support gpg2 for signing.
Minor fix indentation to 4 spaces like the rest of the script.

Change-Id: I6733521838c78da94b67ab81d9397f5b0622e283
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Add a best practice for JJB templates"
Andrew Grimberg [Tue, 29 Aug 2017 16:12:14 +0000 (16:12 +0000)]
Merge "Add a best practice for JJB templates"

7 years agoDO NOT archive if filename is longer than 255 23/6123/2
Thanh Ha [Thu, 24 Aug 2017 16:00:53 +0000 (12:00 -0400)]
DO NOT archive if filename is longer than 255

Most Unix filesystems do not allow files being created that are longer
than 255 characters. The LF Infra VMs are built with XFS and seem to
have the extended attribute allowing longer filenames. This
unfortuantely creates zip that when we copy to Nexus which does not have
this to fail to unpack. Limit archive files to 255 characters or less to
avoid this.

Issue: RELENG-322
Change-Id: I9c70a67d69559b834ec1c1bce0c2b909e61127dd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd a best practice for JJB templates 50/6050/6
Thanh Ha [Fri, 18 Aug 2017 20:07:30 +0000 (16:07 -0400)]
Add a best practice for JJB templates

Having maintained global-jjb for awhile we have realised some good
design patterns that makes maintaining the global-jjb project easier.
This is an attempt to document these as best practices.

Issue: RELENG-414
Change-Id: I773e227d47a532499bad643f771c88edd45af236
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd suport for .tgz and .gz file extensions 08/6208/2
Anil Belur [Mon, 28 Aug 2017 02:25:14 +0000 (12:25 +1000)]
Add suport for .tgz and .gz file extensions

Handle .tgz and .gz files which are usually shortened name fir .tar.gz.

Jira: releng-431
Change-Id: I06fbb701d28eb1e5958698afbcffc0c504968672
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoSet a default logger if file methods fail 09/6109/1
Thanh Ha [Wed, 23 Aug 2017 16:51:25 +0000 (12:51 -0400)]
Set a default logger if file methods fail

In some environment such as ReadTheDocs it appears that pyprefix does
not appear to work as a backup. Let's fall back to a hardcoded logger in
the worst case situation.

Change-Id: Id3389fb05b7386f6d79026cc111982dac6e20efa
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBump version to 0.9.0-dev 63/6063/1
Thanh Ha [Mon, 21 Aug 2017 15:50:19 +0000 (11:50 -0400)]
Bump version to 0.9.0-dev

Change-Id: I3600d0b5aaa73a3e32da9437305979efe5e06483
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoSet version to 0.8.0 for release 62/6062/1 v0.8.0
Thanh Ha [Mon, 21 Aug 2017 15:37:21 +0000 (11:37 -0400)]
Set version to 0.8.0 for release

Change-Id: I5503409a5a069fc6675442e33664ec14003f5272
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease lftools v0.8.0 47/6047/1
Thanh Ha [Fri, 18 Aug 2017 19:40:12 +0000 (15:40 -0400)]
Release lftools v0.8.0

Change-Id: I7348e33a27434ab6355aec09a7cb5a7beec35914
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Add all release notes up to date"
Thanh Ha [Fri, 18 Aug 2017 19:36:37 +0000 (19:36 +0000)]
Merge "Add all release notes up to date"

7 years agoAdd all release notes up to date 37/5937/1
Thanh Ha [Wed, 16 Aug 2017 18:49:55 +0000 (14:49 -0400)]
Add all release notes up to date

Keeping a history for our release notes would be useful for folks to
understand what changed since the version the are using.

Change-Id: I7eebbf8fc49be87facd0f87291f70d544accfe02
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRe-factor deploy maven file to remove dup code 87/5887/3
Anil Belur [Mon, 14 Aug 2017 10:13:06 +0000 (20:13 +1000)]
Re-factor deploy maven file to remove dup code

Change-Id: I2a4ddd37eff6da11eb04b91ceb96810e39d218aa
Jira: releng-360
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoConvert license print statements to logger 19/5819/4
Thanh Ha [Wed, 9 Aug 2017 22:01:33 +0000 (18:01 -0400)]
Convert license print statements to logger

Change-Id: I0597053944aef49b9537fd8d492781fa76c05ad0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoMerge "Fix best practice doc example code indent"
Jeremy Phelps [Fri, 11 Aug 2017 13:30:35 +0000 (13:30 +0000)]
Merge "Fix best practice doc example code indent"

7 years agoFix best practice doc example code indent 50/5850/1
Anil Belur [Fri, 11 Aug 2017 13:18:17 +0000 (23:18 +1000)]
Fix best practice doc example code indent

Change-Id: I61362fbba37c85713468b7af1eadd132f768b16f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoVerify lftools scripts have license headers 33/5733/3
Thanh Ha [Thu, 3 Aug 2017 21:20:23 +0000 (17:20 -0400)]
Verify lftools scripts have license headers

Add a test to check for license headers in Python and Shell code.

Change-Id: I61b82d463105fca9bb2a0385ca18482ec0fea7c0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBump version to 0.8.0-dev 48/5748/2
Thanh Ha [Fri, 4 Aug 2017 20:29:14 +0000 (16:29 -0400)]
Bump version to 0.8.0-dev

Change-Id: Iadfdcdf72d4f6bfb51e336fb3013c3488eb43560
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease lftools v0.7.0 47/5747/2 v0.7.0
Thanh Ha [Fri, 4 Aug 2017 20:22:56 +0000 (16:22 -0400)]
Release lftools v0.7.0

Noteable Changes:

f3b7292 Jessica Wagantall       Implement lftools logger
f16b45d Anil Belur      Make maven deploy-file more generic
c4084d7 Anil Belur      Pass maven parameters to deploy maven-file
2f7fc1a Jessica Wagantall       Add script to fix yamllint errors
8f0d84c Thanh Ha        Add a license header scanner

Change-Id: I3b25d66720120d79180d0241e625305edf095e45
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoDocument installation of lftools 46/5746/4
Jeremy Phelps [Fri, 4 Aug 2017 20:04:50 +0000 (15:04 -0500)]
Document installation of lftools

Change-Id: I762b8fc6cd82b786c81eb9cc3a0711030a0d1ee5
JIRA: RELENG-325
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoUse logger for Nexus create repo script 66/5666/8
Jessica Wagantall [Fri, 28 Jul 2017 00:19:08 +0000 (17:19 -0700)]
Use logger for Nexus create repo script

Nexus create repo needs to output what it's
doing into a log file.
Use the generic logger to obtain that output.

JIRA: RELENG-253

Change-Id: I1705b52761f79a1331032175c49484c9a75f9810
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
7 years agoImplement lftools logger 65/5665/14
Jessica Wagantall [Fri, 28 Jul 2017 07:04:34 +0000 (00:04 -0700)]
Implement lftools logger

Add generic logger configuration file to be used by lftools scripts.

This logger checks 3 locations for a logger.ini file:

1) ~/.config/lftools/logging.ini
2) /etc/lftools/logging.ini
3) sys.prefix/etc/logging.ini

Dev only...
4) etc/logging.ini (Default fallback in dev environments)

JIRA: RELENG-321
Change-Id: I8fef663dd6b02947f7722424ecce6e2cc78debec
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
7 years agoIgnore shebang when evaluating license headers 43/5743/1
Thanh Ha [Fri, 4 Aug 2017 17:29:18 +0000 (13:29 -0400)]
Ignore shebang when evaluating license headers

The shebang lines in some scripts should be ignored when evaluating
license headers.

Change-Id: I7d895cf6b00a6edf8303c229278a262129ec2661
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUse a regex pattern instead for license searching 41/5741/1
Thanh Ha [Fri, 4 Aug 2017 17:11:51 +0000 (13:11 -0400)]
Use a regex pattern instead for license searching

This allows us to search for files for example in shell/ where there are
no file extensions.

Change-Id: I5634b233d9feb0d2dc3421b0c1a9c5280faf82f1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Make maven deploy-file more generic"
Jeremy Phelps [Fri, 4 Aug 2017 13:10:02 +0000 (13:10 +0000)]
Merge "Make maven deploy-file more generic"

7 years agoTrim trailing slashes from URL inputs 31/5731/1
Thanh Ha [Thu, 3 Aug 2017 21:09:12 +0000 (17:09 -0400)]
Trim trailing slashes from URL inputs

Trailing slashes in URLs causes the staging code to upload to
//org.opendaylight.project instead of /org.opendaylight.project which
fails our URL pattern matching target defined in Nexus since Nexus
thinks // as a blank directory in the path. We need to make sure
extraneous / does not get pushed in by the user so trim it off if they
do.

Issue: RELENG-351
Change-Id: I264fec5c41e89d588e03a9c447917ee8a3623c62
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMake maven deploy-file more generic 96/5696/2
Anil Belur [Sat, 29 Jul 2017 05:34:26 +0000 (15:34 +1000)]
Make maven deploy-file more generic

Add support for war, jar and tar.gz files
Add support for passing pom files with -f

JIRA: releng-201
Change-Id: Ia5da1e5df23eddd803877f5b42bc8a594cbe58c1
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoMerge "Add a license header scanner"
Jeremy Phelps [Wed, 2 Aug 2017 15:38:04 +0000 (15:38 +0000)]
Merge "Add a license header scanner"

7 years agoMerge changes from topic '5663'
Thanh Ha [Wed, 2 Aug 2017 14:48:02 +0000 (14:48 +0000)]
Merge changes from topic '5663'

* changes:
  Add CONTRIBUTING file
  Enable MarkDown linting

7 years agoMerge "Pass maven parameters to deploy maven-file"
Thanh Ha [Wed, 2 Aug 2017 14:22:02 +0000 (14:22 +0000)]
Merge "Pass maven parameters to deploy maven-file"