releng/lftools.git
7 years agoFix archives script "File exists" spam 60/4060/1
Thanh Ha [Mon, 6 Mar 2017 05:13:28 +0000 (00:13 -0500)]
Fix archives script "File exists" spam

The archive scripts has a bug that causes it to spam "File exists" at
the end of a log. This patch improves the script to handle this a little
better.

Change-Id: I61e939e74d7ab9c5f87a83cebd96ce886927bc88
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMake create version tests easier 61/4061/1
Thanh Ha [Mon, 6 Mar 2017 00:30:23 +0000 (19:30 -0500)]
Make create version tests easier

This patch allows version tests to simply be placing files into a
directory and comparing the test results from an input pom and an
expected pom.

Also add a test to validate bump order.

Change-Id: Ide4da6f721223bc4d3edab79db9008e4cae730c6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix RTD generation of Shell docs 62/4062/1
Thanh Ha [Sun, 5 Mar 2017 04:57:57 +0000 (23:57 -0500)]
Fix RTD generation of Shell docs

Change-Id: Ieec4b6695610d7a2a53727cd8c5680b34cf647a9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix RTD generation of Shell docs 63/4063/1
Thanh Ha [Sun, 5 Mar 2017 04:56:05 +0000 (23:56 -0500)]
Fix RTD generation of Shell docs

Not sure if this exactly fixes it but have to merged to test.

Change-Id: I949fb80cd5031dc1a4bff3732ac75d09e6f09c6d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease version 0.0.6 64/4064/1 v0.0.6
Thanh Ha [Sun, 5 Mar 2017 04:43:20 +0000 (23:43 -0500)]
Release version 0.0.6

Change-Id: I7c4d8d12294968017ea1c668eb55047b0d8c582c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd unit tests for version script 65/4065/1
Thanh Ha [Sun, 5 Mar 2017 04:20:39 +0000 (23:20 -0500)]
Add unit tests for version script

Adds unit tests for the version script to ensure it works in the use
cases OpenDaylight requires the script for. Unit Tests run against
Python 3 as we are only supporting Python 3 for lftools at the moment.

- Fix version script not running 'release' command
- Add pytest
- Test version script for 3 use cases:
    1) Version bump for release
    2) Version bump by x.y.(z+1) post release
    3) Version bump by x.(y+1).z

Change-Id: Ib36d9a84e2769863083400c434e1539b302869a8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd Python linting in coala 66/4066/1
Thanh Ha [Sun, 5 Mar 2017 02:36:58 +0000 (21:36 -0500)]
Add Python linting in coala

- Add Git Commit Bear to validate commit message
- Make tox automatically download nltk data for GitCommitBear
- Add Python Bears to validate Python code

Change-Id: Ib50fa4ecaf282a751de38f149bf1e2992463a5f2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix shellcheck issues in deploy-archives script 67/4067/1
Thanh Ha [Sun, 5 Mar 2017 01:59:34 +0000 (20:59 -0500)]
Fix shellcheck issues in deploy-archives script

Change-Id: I2bfaad163292a5689c2c65946e2b3e6e80929117
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoCreate lftools cli 68/4068/3
Thanh Ha [Sun, 5 Mar 2017 01:06:56 +0000 (20:06 -0500)]
Create lftools cli

lftools cli becomes a wrapper for Shell scripts as well as a cli for
lftools Python components. Use the 'version' script as a starting point.

This patch also:

* Initializes automated Shell docs
* Improves version script to be callable from lftools cli

Change-Id: I21c7997745af0d3852d5b86d928832e7a8486fa4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoConvert version bump script to functions 69/4069/2
Thanh Ha [Sat, 4 Mar 2017 23:52:16 +0000 (18:52 -0500)]
Convert version bump script to functions

Convert the version bump script to functions so that it can be sourced
and reused more easily.

Change-Id: I09dde2c7e51b6dc8b70bb5befbe22d1fdb947903
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMove deploy-archives script into shell dir 70/4070/1
Thanh Ha [Sat, 4 Mar 2017 23:49:07 +0000 (18:49 -0500)]
Move deploy-archives script into shell dir

Change-Id: I35a0a732c6431c656a2a33d74916946e78acdaca
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoCreate a git status report at the end of build 71/4071/1
Thanh Ha [Wed, 8 Feb 2017 20:29:43 +0000 (15:29 -0500)]
Create a git status report at the end of build

git-status report can be useful at the end of a build to identify
projects that left their project repo either with modified files or
untracked files.

Change-Id: I3f9f9c01991699574e1a9ca81885728117144b26
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMake message more clear 72/4072/1
Thanh Ha [Thu, 26 Jan 2017 22:43:40 +0000 (14:43 -0800)]
Make message more clear

Change-Id: Ib10b7dc474b8411419d8e809e2d87c8341b60125
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoReduce verbosity of shiplogs 73/4073/1
Thanh Ha [Mon, 23 Jan 2017 14:57:09 +0000 (09:57 -0500)]
Reduce verbosity of shiplogs

The end of a build there's a lot of download details from wget. This
patch aims to reduce that unnecessary verbosity. We will still get
error messages / success messages just not the download status of wget.

Change-Id: I10b9cffc6b74abc6fe2dd7f90924498b9f99197f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFilter out bad environment variables 74/4074/1
Thanh Ha [Tue, 10 Jan 2017 20:07:42 +0000 (15:07 -0500)]
Filter out bad environment variables

Change-Id: Id0631226ac1ebd433ff72d079b598e43e1f4f660
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoPrefix timestamps on archived console logs 75/4075/1
Anil Belur [Tue, 6 Dec 2016 08:54:02 +0000 (18:54 +1000)]
Prefix timestamps on archived console logs

Time stamper plugin adds time stamps only to the jobs console logs,
which is unavailble on the archived console logs. This change fixes
the issue using the paste command.

Change-Id: Idc08840622a62dc679b0030554cfb4377472d726
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRename _console-output.log to console.log 76/4076/1
Thanh Ha [Wed, 19 Oct 2016 17:34:04 +0000 (13:34 -0400)]
Rename _console-output.log to console.log

This allows someone to take a url like:

https://jenkins.opendaylight.org/releng/job/example-job/253/console

and convert it to

https://logs.oopendaylight.org/releng/jenkins092/example-job/253/console

and be able to expect to see the console logs despite the BASE_URL
changing.

Change-Id: I093f851f816cc71a55cbadbfd085b58baa289835
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRedirect zip logs to file and store on logs.o.o 77/4077/1
Thanh Ha [Sat, 15 Oct 2016 01:01:40 +0000 (21:01 -0400)]
Redirect zip logs to file and store on logs.o.o

The zip logs take a lot of the console log lines at the end of a build.
The output might be useful for troubleshooting so lets redirect the
output to a file and store it in logs.opendaylight.org instead of
outputting it to the Jenkins console logs directly.

Change-Id: Ie56d2a5348c9a55854199539e647f21894febe68
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoGzip *.bundle files in archives/patches 78/4078/1
Anil Belur [Wed, 14 Sep 2016 08:53:37 +0000 (18:53 +1000)]
Gzip *.bundle files in archives/patches

Change-Id: I3a3b0ea61d5729c538403bc912a01acfd1aeced7
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoEnable system stats for archive-build macro 79/4079/1
Anil Belur [Fri, 19 Aug 2016 06:37:17 +0000 (16:37 +1000)]
Enable system stats for archive-build macro

Change-Id: I828ff5053d6957e54362ecb50616ba0bdd790046
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoChange log servers and url to support parameter 80/4080/1
Sandra Biton [Thu, 18 Aug 2016 09:19:05 +0000 (12:19 +0300)]
Change log servers and url to support parameter

Provide a default value for OpenDaylight.

Change-Id: Ifeaad654884d1730f4f3ea46aa5d8ca5730d26e4
Signed-off-by: Sandra Biton <sandra.biton@hpe.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoJob for bindingv1 suite 81/4081/1
Vratko Polak [Tue, 26 Jul 2016 12:15:37 +0000 (14:15 +0200)]
Job for bindingv1 suite

Change-Id: Ic0d539f44e476b98dc40ad239fb7e44bc4dd547c
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoWrap ARCHIVE_ARTIFACTS variable with quotes and braces 82/4082/1
Thanh Ha [Thu, 14 Jul 2016 02:33:37 +0000 (22:33 -0400)]
Wrap ARCHIVE_ARTIFACTS variable with quotes and braces

Otherwise certain glob patterns are parsed incorrectly in the
if-statement.

Change-Id: I288b31fd483553ba151645ecd4164ef0684d40d4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoImprove archive-build macro to gzip any text file 83/4083/1
Anil Belur [Tue, 12 Jul 2016 05:55:08 +0000 (11:25 +0530)]
Improve archive-build macro to gzip any text file

Change-Id: I5a782147ec7f11fa353fbf01ea6d7fc117757346
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoImprove archive-build to archive using globstar 84/4084/1
Thanh Ha [Mon, 11 Jul 2016 20:42:11 +0000 (16:42 -0400)]
Improve archive-build to archive using globstar

Allows us to use **/*.xml for example as the archive parameter.

Change-Id: I5a92e198999a3db31fedc23e65f4c5315561f93c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoPrint out environment variables to file 85/4085/1
Thanh Ha [Wed, 6 Jul 2016 00:30:24 +0000 (20:30 -0400)]
Print out environment variables to file

The environment variable list could be useful in troubleshooting so
paste it out at the end of the build.

Change-Id: Ibf3abed0f71c73269aa077ebe9dd7ea8bc35faad
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix archiving script to trim the end of the log file 86/4086/1
Thanh Ha [Wed, 6 Jul 2016 00:27:10 +0000 (20:27 -0400)]
Fix archiving script to trim the end of the log file

Because the console log is still running while we are downloading it to
archive to logs.opendaylight.org it ends abruptly and causes confusion.
This patch trims the log so it will have a natural end to it's log.

Change-Id: Ic68828d2209a1c95e3c8282a82bc12f3138105a6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoPrint size of archives.zip 87/4087/1
Thanh Ha [Tue, 28 Jun 2016 02:03:20 +0000 (22:03 -0400)]
Print size of archives.zip

Change-Id: I9d73d1849fe43c5d0d800a41d7c619ecc8decf62
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRework archives directory format 88/4088/1
Thanh Ha [Mon, 27 Jun 2016 18:18:06 +0000 (14:18 -0400)]
Rework archives directory format

Change-Id: I9318ffa2a06b3a918263eb678a75ad700f7171f0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRemove Gerrit notification script 89/4089/1
Thanh Ha [Mon, 27 Jun 2016 16:37:49 +0000 (12:37 -0400)]
Remove Gerrit notification script

It seems ssh-agent is not passed to publishers so will have to rework
this code to run as a builder step in a later patch.

Change-Id: I856468e91087ce39ea24308ad864dd45c500fc85
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd macro to deploy archives to Nexus 90/4090/1
Thanh Ha [Mon, 13 Jun 2016 04:05:35 +0000 (00:05 -0400)]
Add macro to deploy archives to Nexus

Requires the Description Setter plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Description+Setter+Plugin

Change-Id: Ibc3d4a74416995b699e420864626dabd8a3c0658
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd SpaceConsistencyBear 91/4091/1
Thanh Ha [Sat, 4 Mar 2017 18:25:21 +0000 (13:25 -0500)]
Add SpaceConsistencyBear

Enforce spaces instead of tabs and 4 space indents.

Change-Id: I0e977f5206ebbb3f9962c463e4ddf23bb767c5ae
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUse coala got run ShellCheck 92/4092/1
Thanh Ha [Sat, 4 Mar 2017 18:20:16 +0000 (13:20 -0500)]
Use coala got run ShellCheck

Change-Id: I7ea7346fb2cacb5310293a3b2dbdc1e6261dbab0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRun shellcheck by default with tox 93/4093/1
Thanh Ha [Sat, 4 Mar 2017 18:05:36 +0000 (13:05 -0500)]
Run shellcheck by default with tox

Change-Id: I8908346b168dbc21831538e5f64ab438ec693f30
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd ShellCheck to tox 94/4094/1
Thanh Ha [Sat, 4 Mar 2017 18:04:21 +0000 (13:04 -0500)]
Add ShellCheck to tox

Change-Id: Ib76fe08933a360a3e676ea6f825934c1f6f830c9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix ShellCheck for patch-odl-release 95/4095/1
Thanh Ha [Sat, 4 Mar 2017 18:04:04 +0000 (13:04 -0500)]
Fix ShellCheck for patch-odl-release

Change-Id: Ief138884ec71f2d5713dae7c2f71b7247052be08
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoSet minimum theme requirements 96/4096/1
Thanh Ha [Sat, 4 Mar 2017 17:49:17 +0000 (12:49 -0500)]
Set minimum theme requirements

Change-Id: I089c105f75cf01650e7a56e28901495671a10560
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoInitialize lftools docs 97/4097/1
Thanh Ha [Sat, 4 Mar 2017 17:32:26 +0000 (12:32 -0500)]
Initialize lftools docs

Change-Id: I613285e42f7213f8fc43deb00392f1017b249a00
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd basic setup.py 98/4098/2
Thanh Ha [Sat, 4 Mar 2017 17:04:58 +0000 (12:04 -0500)]
Add basic setup.py

Initialize lftools as a project on pypi.

Change-Id: I901ecd512a856f2693da773ae08861ca1bfbf7c8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd a fairly basic .gitignore 99/4099/1
Andrew Grimberg [Mon, 13 Feb 2017 13:54:53 +0000 (05:54 -0800)]
Add a fairly basic .gitignore

Change-Id: Iabcd042ddc733a12fdd766dcbdcd3fddde735279
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agoBump versions also in repo-pom.xml files 00/4100/1
Vratko Polak [Wed, 12 Oct 2016 12:01:46 +0000 (14:01 +0200)]
Bump versions also in repo-pom.xml files

This is needed for https://git.opendaylight.org/gerrit/46822
to pass validation.

Change-Id: I120cf4a59ca2d26ee02df4833ed6d4d263b3eeee
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoImprove release script to handle new release workflow 01/4101/1
Thanh Ha [Fri, 19 Aug 2016 04:20:18 +0000 (00:20 -0400)]
Improve release script to handle new release workflow

See:
https://lists.opendaylight.org/pipermail/release/2016-June/006771.html

Change-Id: Iae9f5940c5eb2fe6024005843e2a966f593909f5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix version.sh to handle date-only version correctly 02/4102/1
Colin Dixon [Tue, 9 Aug 2016 16:55:13 +0000 (12:55 -0400)]
Fix version.sh to handle date-only version correctly

Change-Id: I402067a5db99f69866f9d919643f660e8218bcfd
Signed-off-by: Colin Dixon <colin@colindixon.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix version.sh to handle date-based versions correctly 03/4103/1
Colin Dixon [Tue, 9 Aug 2016 16:32:16 +0000 (12:32 -0400)]
Fix version.sh to handle date-based versions correctly

Change-Id: Ide6fbf329f72f53c4afb6782dedd1a6a5208ac68
Signed-off-by: Colin Dixon <colin@colindixon.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdate bumping script to merge from git bundles 04/4104/1
Thanh Ha [Wed, 8 Jun 2016 21:26:27 +0000 (17:26 -0400)]
Update bumping script to merge from git bundles

Change-Id: Ia44a4e037eb218eda0be4ebcbf8f946704c9f0de
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix taglist script to include subprojects 05/4105/1
Thanh Ha [Wed, 8 Jun 2016 21:22:33 +0000 (17:22 -0400)]
Fix taglist script to include subprojects

For example integration/distribution was not being processed in the
tag script.

Change-Id: I9c989936f4421562245a61e57cfafcd5eb297f9b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoImprove grep in case 2 projects with similar name 06/4106/1
Thanh Ha [Thu, 3 Dec 2015 22:16:01 +0000 (17:16 -0500)]
Improve grep in case 2 projects with similar name

For example "snmp" will return both snmp and snmp4sdn. This patch makes
it clear we only want the result of snmp only.

Change-Id: I2224cb5bdbe3f4a976d095e9a7b696a8b9e2008a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
(cherry picked from commit bb0d68fb970a101660b9027af2b383ea29068571)

7 years agoUpdate release scripts to match stable/lithium 07/4107/1
Thanh Ha [Thu, 3 Dec 2015 21:23:41 +0000 (16:23 -0500)]
Update release scripts to match stable/lithium

Change-Id: I0e7d08594c72e79c93ca244288addce4c329a83d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBug 3453 : Error in running version.sh 08/4108/1
Navin Agrawal [Sat, 30 May 2015 05:16:19 +0000 (22:16 -0700)]
Bug 3453 : Error in running version.sh

Change-Id: I030d7a07125c3b389e5c3829e14b736ac032c641
Signed-off-by: Navin Agrawal <anavin@gmail.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoImprove comments and when usage is printed 09/4109/1
Colin Dixon [Fri, 13 Mar 2015 21:19:27 +0000 (16:19 -0500)]
Improve comments and when usage is printed

Change-Id: I1144c6562e8ff543d08e2bbab5cf184d4c1cd29a
Signed-off-by: Colin Dixon <colin@colindixon.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoImprove version.sh to handle SNAPSHOT->RELEASE 10/4110/1
Thanh Ha [Thu, 12 Mar 2015 19:36:06 +0000 (15:36 -0400)]
Improve version.sh to handle SNAPSHOT->RELEASE

Bug: 2830
Change-Id: Ieeeba8d1c5d19a1f6297d7cfb68e9f9c68c6874a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd wrapper script that produces commits for releases 11/4111/1
Thanh Ha [Thu, 5 Feb 2015 18:30:04 +0000 (13:30 -0500)]
Add wrapper script that produces commits for releases

Change-Id: Icb2c12100c8e3eaa622f96956769ca80ee95ed89
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd version-bump.sh 12/4112/1
Colin Dixon [Wed, 14 Jan 2015 02:59:33 +0000 (21:59 -0500)]
Add version-bump.sh

Copied from
https://wiki.opendaylight.org/view/File:Version-bump.sh

Change-Id: Iabc3f41b42161ff7aecac2a6cec8bf7024374487
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Colin Dixon <colin@colindixon.com>
7 years agoAdd .gitreview 26/4126/1
Thanh Ha [Tue, 3 Jan 2017 19:05:39 +0000 (14:05 -0500)]
Add .gitreview

Change-Id: I0ca8fb9ae6e7d5b029d8f119b1bdb43dad6c0ff1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoInitial empty repository
Andrew Grimberg [Tue, 3 Jan 2017 18:57:45 +0000 (18:57 +0000)]
Initial empty repository