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>
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>
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>
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>
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>
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>
Thanh Ha [Fri, 18 Aug 2017 19:36:37 +0000 (19:36 +0000)]
Merge "Add all release notes up to date"
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>
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>
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>
Jeremy Phelps [Fri, 11 Aug 2017 13:30:35 +0000 (13:30 +0000)]
Merge "Fix best practice doc example code indent"
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jeremy Phelps [Fri, 4 Aug 2017 13:10:02 +0000 (13:10 +0000)]
Merge "Make maven deploy-file more generic"
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>
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>
Jeremy Phelps [Wed, 2 Aug 2017 15:38:04 +0000 (15:38 +0000)]
Merge "Add a license header scanner"
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
Thanh Ha [Wed, 2 Aug 2017 14:22:02 +0000 (14:22 +0000)]
Merge "Pass maven parameters to deploy maven-file"
Anil Belur [Fri, 21 Jul 2017 11:21:53 +0000 (21:21 +1000)]
Pass maven parameters to deploy maven-file
Change-Id: I361a735779a3441551bc619cc57ff5db762cc5d5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Jessica Wagantall [Mon, 6 Mar 2017 16:05:27 +0000 (08:05 -0800)]
Add script to fix yamllint errors
Run this script as "./fix_yamllint.sh" inside the desired repo.
This script will ask the option of running for all *.yaml files or
specific ones for which the user will need to provide the complete
path per file separated by spaces.
Change-Id: I63f200fd9289f12715d354c95af18b619e4911a2
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Thanh Ha [Fri, 28 Jul 2017 04:14:25 +0000 (00:14 -0400)]
Add CONTRIBUTING file
CONTRIBUTING files are useful to notify potential developers of how to
contribute to our project. Especially if they found it via the GitHub
mirror.
Change-Id: I707332e1b6d5135fb100481645136bbbbe8c37db
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 28 Jul 2017 04:13:24 +0000 (00:13 -0400)]
Enable MarkDown linting
Lint MarkDown files with MarkdownBear and resolve markdown lint issues.
Change-Id: I4b18ab8060d8bdc293ef8548ec8e9fd56db3988d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 19 Jul 2017 22:50:24 +0000 (18:50 -0400)]
Add a license header scanner
Simple scanner to check code files for a license header. Does not care
about the exact formatting of the license header as long as all the text
exists in the correct order.
This version only supports headers using '#' as the comment string.
Issue: RELENG-279
Change-Id: Id4030f040c3de4350c59776ed21eed497e5d6f8d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 28 Jul 2017 01:55:28 +0000 (21:55 -0400)]
Improve .coafile rules using inheritance
Fix linting where appropriate.
Change-Id: Ife5f944bd3819858486d323ed91a80df7f075d88
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 28 Jul 2017 01:42:33 +0000 (21:42 -0400)]
Fix first/third party import sorting
Change-Id: I8e3a28d931e5c1283f44c9b47c261662b7072470
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 26 Jul 2017 20:38:14 +0000 (16:38 -0400)]
Add missing license header in test_version.py
Change-Id: I769511e1cb099f89b000f550b04bd5c9c9dc7f89
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 25 Jul 2017 16:55:49 +0000 (12:55 -0400)]
Fix docs underline too short in deploy docs
Change-Id: I668f3add6e53abf8138776573616c7e834b01b3d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 25 Jul 2017 20:47:16 +0000 (16:47 -0400)]
Ignore linkchecking Google blog
Our CI systems appear to be failing to validate against this URL.
Perhaps Google blocked us?
Change-Id: Ie2047cd7f4a9fe94491c440bde93b67bdc3fc904
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 21 Jul 2017 18:02:40 +0000 (14:02 -0400)]
Bump version to 0.7.0-dev
Change-Id: If979aed2d22e962e7175e71b14552d81398399e5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 21 Jul 2017 16:27:47 +0000 (12:27 -0400)]
Release lftools v0.6.0
Notable Changes:
41bf360 Thanh Ha Copy sign scripts over to lftools
Change-Id: I7f63280df10ae3e5b271927a6b21e75811018dd2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Jeremy Phelps [Fri, 21 Jul 2017 16:06:49 +0000 (16:06 +0000)]
Merge "Disable Maven transfer output"
Thanh Ha [Fri, 21 Jul 2017 15:56:53 +0000 (11:56 -0400)]
Disable Maven transfer output
Enable --batch-mode and set transfer logger to WARN to prevent Maven
from printing the download/upload progress indicators in console logs.
Issue: https://trello.com/c/uSwEfMmP/542-make-build-rpm-stream-console-output-less-verbose
Change-Id: I00d323192a9726e5b6f7b92ab80c424bfe3ab81f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 12 Jul 2017 15:15:22 +0000 (11:15 -0400)]
Add Code Review checklist
Change-Id: I590e1da39c7097aa31ff566d744c67f57c28112b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Jeremy Phelps [Wed, 19 Jul 2017 15:37:07 +0000 (10:37 -0500)]
Document the use of {obj:key} notation
When using this notation in JJB, the variable name
you pass to must not have a dash in it.
Change-Id: Ic66d5bb82314af0715ecc465c412b07b44dbedc8
JIRA: RELENG-332
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
Thanh Ha [Tue, 18 Jul 2017 17:47:32 +0000 (13:47 -0400)]
Update SPDX License header to new format
According to SPDX's website https://spdx.org/using-spdx the correct
format for specifying SPDX is now:
# SPDX-License-Identifier: EPL-1.0
Issue: RELENG-278
Change-Id: I742b12f50a14fa2108f705f44860ee64d02ebd7e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Sat, 15 Jul 2017 00:37:41 +0000 (20:37 -0400)]
Add write-good linting for docs
Write Good is a linter for English prose.
Change-Id: Iace497dbfaf5ef7091bf6b52eb4d8d6c2b4d1134
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Sat, 15 Jul 2017 01:17:48 +0000 (21:17 -0400)]
Fix write-good lint errors
Change-Id: I0eab0d68ba35939d7275d51166df418eed637b7a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Sat, 15 Jul 2017 00:08:00 +0000 (20:08 -0400)]
Shorten title and add description
Change-Id: If03ba16d2e370ea9ca2723ec2ffdc8b6d469a920
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 14 Jul 2017 18:02:26 +0000 (14:02 -0400)]
Add Sign command documentation
Change-Id: I6a7c6038f31719fee893b7b5ba5ddb25614c3e2d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Anil Belur [Sun, 9 Jul 2017 23:55:19 +0000 (09:55 +1000)]
Filter creds before writing to logs.
Remove any credentials possibily set as evnironment variables
when running the job.
Change-Id: I8e6daa19bb76152944e54be454fc83adbb9221fc
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Thanh Ha [Wed, 28 Jun 2017 17:51:41 +0000 (13:51 -0400)]
Copy sign scripts over to lftools
This is a rewrite of the original tools to make it more generically
reusable by any Nexus server and project but is based on the original
code in OpenDaylight's releng/builder project scripts odlrelease and
odlsign-bulk.
Issue: RELENG-20
Change-Id: I35d4da0e2978f06640ddc11a93c9f86676a2a7e7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 29 Jun 2017 22:02:55 +0000 (18:02 -0400)]
Bump version to 0.6.0-dev
Change-Id: Ie1312e51019c16416b354318a571c491db9f8646
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 29 Jun 2017 21:59:13 +0000 (17:59 -0400)]
Release lftools v0.5.0
Noteable Changes:
4da2d40 Thanh Ha Deploy to Nexus using parallel
a72bf05 Thanh Ha Add command to deploy nexus-zip files
Change-Id: I8652cdd31ead436e49da417138cb978813cc0225
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 27 Jun 2017 03:38:29 +0000 (23:38 -0400)]
Deploy to Nexus using parallel
Speed up the script by using GNU parallel to push when it is available.
Change-Id: I8ddff8b8cf50cd821aae21958ab8b5c7ecc33174
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 23 Jun 2017 15:08:43 +0000 (11:08 -0400)]
Improve deploy error message
The previous error message states that there are missing arguments
however if the user provides more arguments than necessary it still
fails with the same error. This patch attempts to make the error message
more helpful to the user.
Change-Id: I6e5967f098a98bb7b141635ce8358bc5de4a89e4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Andrew Grimberg [Thu, 22 Jun 2017 13:33:17 +0000 (13:33 +0000)]
Merge "Use a multiline string for description"
Thanh Ha [Wed, 21 Jun 2017 19:47:21 +0000 (15:47 -0400)]
Add command to deploy nexus-zip files
This command is useful to push nexus formated zip files directly to the
Nexus content-compressed URL. This is useful for example with Site repos
where it would be faster to cURL a zip file here than to allow Maven
site:deploy to upload one file at time to Nexus.
Issue: RELENG-211
Change-Id: Ie459498b4886391a4a4fbe86b3cbb1a837bc2b16
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 21 Jun 2017 18:36:29 +0000 (14:36 -0400)]
Re-organize functions alphabetically
Missed this when we merged the maven-file code. L comes before M.
Change-Id: I46e0bbc622599ddf2ed2fa25e7dde4c9bb3bf54b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 21 Jun 2017 15:39:22 +0000 (11:39 -0400)]
Use a multiline string for description
Fix up some formatting issues by using a multiline string.
Change-Id: I8f199a813dd6fde2b5b4af8598aa93c847287a38
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 21 Jun 2017 15:33:15 +0000 (11:33 -0400)]
Bump version to 0.5.0-dev
Change-Id: I064a1042799bfc46bf4d20970f4af6728715cf66
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 21 Jun 2017 15:29:58 +0000 (11:29 -0400)]
Release lftools 0.4.0
Noteable Changes:
e5c8909 Anil Belur Add deploy maven-file command to lftools
b6a9961 Thanh Ha Add a README to locate the online docs
7485330 Thanh Ha Link deploy commands into commands index
032dbba Thanh Ha Improve error detection for when SSL invalid
Change-Id: Ib8a8829f53e150bffb1c826b69bd7e3406cad033
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Anil Belur [Tue, 13 Jun 2017 00:24:27 +0000 (10:24 +1000)]
Add deploy maven-file command to lftools
The 'deploy maven-file' command uses mvn deploy-file goal
for deploying files to a nexus repository.
Credentials can be provided by settings.xml file in the following way
(order or precedence listed):
1) User provides the settings file explicitly via -s parameter
2) User provides the settings file via SETTINGS_FILE envvar
3) User does not provide the file (default Maven location used)
Jira: releng-160
Change-Id: I0a3af408f70d7d2551a187ec3561b5e609e733d5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Andrew Grimberg [Mon, 19 Jun 2017 21:17:54 +0000 (21:17 +0000)]
Merge "Link deploy commands into commands index"
Thanh Ha [Tue, 13 Jun 2017 16:45:01 +0000 (12:45 -0400)]
Add a README to locate the online docs
Change-Id: Ie415e767bf2a1dc4a71b1cefe001002ae2041974
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Mon, 12 Jun 2017 19:52:40 +0000 (15:52 -0400)]
Link deploy commands into commands index
Change-Id: I5479625279e9be1c6c44eb27d3a0c7ec7f854f56
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Mon, 12 Jun 2017 00:37:00 +0000 (20:37 -0400)]
Improve error detection for when SSL invalid
If SSL cert is invalid we don't even reach the Nexus server. So add code
to check that status is 201 before proceeding.
Change-Id: Ic5c8a0ce4177f73e6f753001ee8bbc5fdf02956c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Sun, 11 Jun 2017 17:59:27 +0000 (13:59 -0400)]
Bump version for next dev cycle
Change-Id: Ie1d3ad6829c6e213a86e00ebb07b6f959c65b209
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Sun, 11 Jun 2017 17:41:02 +0000 (13:41 -0400)]
Release lftools v0.3.0
Noteable changes:
3c498dc Thanh Ha Add deploy nexus-stage command
c84a544 Thanh Ha Add deploy nexus command
58a1793 Anil Belur Report memory usage with sys-info
5529081 Trevor Bramwell Add Jenkins to LF Tools
Change-Id: I3b9866ac884e31f3869cdd0ae062afa8e695a386
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 9 Jun 2017 03:12:56 +0000 (23:12 -0400)]
Add deploy nexus-stage command
Use curl to deploy a staging repository to Nexus.
Jira: RELENG-120
Change-Id: Ibd6c25f4318264e5f3e96aeede1c7fe891c473b2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 31 May 2017 21:01:43 +0000 (17:01 -0400)]
Add deploy nexus command
Use curl to deploy a Maven repository to Nexus.
Jira: RELENG-121
Change-Id: If46e5054a2234eab77e7bd07120d8d0f11dfd293
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Anil Belur [Fri, 9 Jun 2017 03:42:51 +0000 (13:42 +1000)]
Report memory usage with sys-info
Earlier this was getting printed in the end of the console logs
which got missed out while porting to lftools.
Change-Id: Id7e59ecdc017c15ebbe1d540fa36eef19ced9d38
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 9 Jun 2017 21:35:58 +0000 (17:35 -0400)]
Ensure shell scripts exit with proper status codes
Otherwise shell scripts called by lftools will return success which may
be incorrect.
Change-Id: I607dd7d5047da51446b953e27a9d48c31c16736c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Trevor Bramwell [Fri, 12 May 2017 02:17:00 +0000 (19:17 -0700)]
Add Jenkins to LF Tools
Initial supported commands:
- jenkins builds running
- jenkins builds queued
- jenkins nodes list
- jenkins quiet-down
- jenkins plugins list
- jenkins plugins active
- jenkins plugins enabled
- jenkins plugins disabled
- jenkins plugins pinned
- jenkins plugins needs-update
Change-Id: I6f5e2601ed4eae76f3fd58422e8f7ea128f6e9f6
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Thanh Ha [Tue, 6 Jun 2017 16:37:45 +0000 (12:37 -0400)]
Remove unused variable
Change-Id: I94a45ef34c9cc2d108cb2e6e6fd7415298e63a1b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 1 Jun 2017 21:53:46 +0000 (17:53 -0400)]
Improve lftools description to include dependencies
Change-Id: Ia9b757441ab7288ca7f02a0b58599c0333a5a4d1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 26 May 2017 15:06:24 +0000 (11:06 -0400)]
Bump version for next dev cycle
Change-Id: I1d796671b0a5130e5f671d727dea97de468d8429
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 26 May 2017 15:04:11 +0000 (11:04 -0400)]
Release lftools v0.2.0
Change-Id: I9f8e9b45dc1483571257c80cd394c1eea03c8937
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 24 May 2017 16:33:33 +0000 (12:33 -0400)]
DO NOT version bump after tagging
The patch command should only handle tagging. We'll be using a job for
automated version bumping moving forward.
Change-Id: If43c3099961401b46fa045583c138b070dbfd1a2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 24 May 2017 00:15:44 +0000 (00:15 +0000)]
Merge "Add artifact base target to nexus configuration"
Andrew Grimberg [Wed, 24 May 2017 00:02:27 +0000 (17:02 -0700)]
Add artifact base target to nexus configuration
Projects should be able to push to $groupId.$artifactId.$extension as
well well as anything under that path. Not allowing this means that our
projects always are having to define a broken pom that may look like:
<groupId>org.example.artifactId</groupId>
<artifactId>artifactId</artifactId>
Which means they always end up deploying a base artifact at
$groupId.$artifactId.$artifactId in many cases.
Change-Id: I11a2bcebfe07d39251d85f92ab783c1a2ed5288c
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Mon, 15 May 2017 01:29:45 +0000 (11:29 +1000)]
Add openstack server list and cleanup commands
This adds 2 new commands to lftools to manipulate openstack servers:
list: Prints available servers in the cloud.
cleanup: Removes old servers from the cloud.
Change-Id: Ic9a99f8a5d13e040868f2271c1814ab82d9e0ac8
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Jeremy Phelps [Thu, 27 Apr 2017 14:32:31 +0000 (09:32 -0500)]
Amend .gitignore for vscode editor
Change-Id: I4852abfc79187f0f8b9d76cba116ecff6abfad45
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
Andrew Grimberg [Wed, 26 Apr 2017 16:45:21 +0000 (16:45 +0000)]
Merge "Add JJB best practices"
Thanh Ha [Thu, 20 Apr 2017 15:17:55 +0000 (11:17 -0400)]
Pin babel version
Upstream released a new version of Babel which some requirements are
blocking. Pin it so that future updates like this don't break us.
Change-Id: I5681a7055e40655ef62c51e28f682d1832b37f4e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 19 Apr 2017 02:42:19 +0000 (22:42 -0400)]
Prepare for next dev cycle
Change-Id: I5a99416a8e633691d81e41869e5aa9a5ab7ec43a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 19 Apr 2017 02:40:49 +0000 (22:40 -0400)]
Release v0.1.0
Change-Id: If0cd7890d12e21e60c95166a75e1f4807554002f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 19 Apr 2017 02:39:45 +0000 (02:39 +0000)]
Merge "Add deploy command to lftools"
Thanh Ha [Wed, 19 Apr 2017 02:17:36 +0000 (22:17 -0400)]
Prevent PBR from getting installed
openstacksdk's requirements.txt excludes PBR 2.1.0 and causes an install
issue if we pull it in. Let's also exclude it from our requirements.txt
too.
Change-Id: I5fb061ee794f93905b339582d82ad6613abf62f1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Mon, 17 Apr 2017 17:07:15 +0000 (13:07 -0400)]
Add JJB best practices
Provide some best practices around:
1) Declaring paramters in shell scripts
2) Usage of config-file-provider plugin
Change-Id: I81204e8e38f1997d95fd50788ace9e8b04215914
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Mon, 6 Mar 2017 22:59:38 +0000 (17:59 -0500)]
Add deploy command to lftools
Provides a generic script that can be used to deploy artifacts to a
Nexus site repository. Currently it is hardcoded to use a site repo
named "logs" but a future update can be implemented to allow this repo
to be configurable if necessary.
Provides 3 deploy commands:
archives)
Deploys everything that exists in $WORKSPACE/archives if it exists.
This needs to be provided by the job. Designed to run at the end of a
Jenkins build.
logs)
Deploys system information and build console logs. The script will
handle all this. Designed to run at the end of a Jenkins build.
files)
An arbitrary list of files passed by the user will be deployed to the
logs server into an archives directory. Designed to be used inside of
scripts at any time when the job needs to deploy anything to the
server. This is an alternative to having to place all files inside an
archives directory.
(Unimplemented, will be implemented in a future patch)
Change-Id: Ie48f8c65d89fcdce2cc2619fa4bc3408b1e4d709
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Andrew Grimberg [Mon, 3 Apr 2017 21:45:10 +0000 (14:45 -0700)]
Fix .gitreview to point to the correct place
Change-Id: I5672d64a556edd3095c36868881c01737cc355e8
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Thanh Ha [Thu, 16 Mar 2017 22:21:05 +0000 (18:21 -0400)]
Prepare for next dev cycle
Change-Id: I8fd9d11c7e762eb543acb1d224ad969eddc0a7d4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 16 Mar 2017 15:47:13 +0000 (11:47 -0400)]
Release v0.0.10
Change-Id: If9968695ad9161b692bae32209a4e6578197525a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 16 Mar 2017 15:46:54 +0000 (11:46 -0400)]
Add minimum setuptools version
Change-Id: Ifd8d5df39813473d78df7b90b177e2cf18f1f918
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 15 Mar 2017 21:15:14 +0000 (17:15 -0400)]
Bump version to next dev version
Change-Id: Ib7ab5ca47079e94fb505eddf58c7fa49fe732d32
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 15 Mar 2017 20:56:41 +0000 (16:56 -0400)]
Release v0.0.9
Change-Id: I3402f74baff9114cfbac8ee77cc9b08ed64cf7ad
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 15 Mar 2017 20:54:04 +0000 (16:54 -0400)]
Prevent requests 2.13.0 from being installed
Looks like 2.13.0 was released and one of our dependencies does not like
it. Disable it in our requirements.txt file.
Change-Id: I0f42444809089d9c3249bbe9b9565ae3e96eca3c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 15 Mar 2017 20:41:43 +0000 (16:41 -0400)]
Fix syntax error
Change-Id: I1e23893fd3ae4520640b898dd7d6774c36e6fdc1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 15 Mar 2017 20:36:35 +0000 (16:36 -0400)]
Bump dev version and update description
Change-Id: I3a08fb1ec307456313239cc7702d9e0e2d4ee01b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Andrew Grimberg [Tue, 14 Mar 2017 15:32:36 +0000 (15:32 +0000)]
Merge "Add openstack image list and cleanup cmds"
Thanh Ha [Fri, 10 Mar 2017 02:51:46 +0000 (21:51 -0500)]
Add openstack image list and cleanup cmds
This adds 2 new commands to lftools to manipulate openstack images:
list: Prints available images in the cloud.
cleanup: Removes old unused images.
Also fix ctx not getting passed properly to the cli function.
Change-Id: I5c73964f33f4fccb56684910fb08828c747fa562
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 10 Mar 2017 19:16:37 +0000 (14:16 -0500)]
Add docs on how to setup coala
Change-Id: I7816fcf0e4aa94c2cde6007f51f5ed1560f4c51e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>