releng/global-jjb.git
7 years agoBase sigul macros and scripts 56/6556/6
Andrew Grimberg [Fri, 22 Sep 2017 14:23:19 +0000 (07:23 -0700)]
Base sigul macros and scripts

Before any jobs can be created using sigul we need to have some basic
scaffolding for setting up the sigul enviroment.

Changes to lftools to extend the signing command to leverage sigul will
then allow us to create a meta macro which combines this scaffolding
into a single cohesive macro.

Change-Id: I080c1eb7271a2a64559b2c2f7b1011be1e9a8b16
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agoFix branch on verify and merge jobs 28/7528/2
Jeremy Phelps [Wed, 15 Nov 2017 00:39:57 +0000 (18:39 -0600)]
Fix branch on verify and merge jobs

This fixes the branch parameter
on verify and merge jobs to be
refs/heads/{branch} and $sha1
respectively.

Change-Id: I230e04fda467848c5e764c90bf9190416b72dac4
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoFix branch variable in github scm 13/7513/2
Jeremy Phelps [Tue, 14 Nov 2017 20:44:21 +0000 (14:44 -0600)]
Fix branch variable in github scm

The branch variable should not be
concatenated with refs/heads.
GHPRB makes use of variables to
put here.

Change-Id: I54c6f3f51b734b894abb090d4473683a3e34fa06
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoBump to v0.13.0-dev 09/7509/1
Andrew Grimberg [Tue, 14 Nov 2017 19:01:34 +0000 (11:01 -0800)]
Bump to v0.13.0-dev

Change-Id: I92a54cc34ad23a666f90aa76e1168a87235a686c
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agoRelease global-jjb v0.12.0 08/7508/1 v0.12.0
Andrew Grimberg [Tue, 14 Nov 2017 18:50:36 +0000 (10:50 -0800)]
Release global-jjb v0.12.0

Change-Id: I706b80fcdc695d3fb2b25984d65d352ba688b559
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agoMerge "Add npm config script"
Andrew Grimberg [Tue, 14 Nov 2017 18:41:24 +0000 (18:41 +0000)]
Merge "Add npm config script"

7 years agoAdd branches parameter to github scm macro 04/7504/4
Jeremy Phelps [Tue, 14 Nov 2017 16:11:03 +0000 (10:11 -0600)]
Add branches parameter to github scm macro

Make sure that the github scm macro accepts
branches as a configuration option like the
gerrit version of the macro.

Change-Id: Ife15943fa3fc094e20981f804f7036133d881f46
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoEnable maven jobs to archive artifacts 92/7492/1
Anil Belur [Mon, 13 Nov 2017 02:02:52 +0000 (12:02 +1000)]
Enable maven jobs to archive artifacts

Projects which use the maven jobs in global-jjb may
require to archive additional logs such as surefire
reports. This needs to be handled by globstar patterns
passed through the projects using these templates.

Change-Id: I97dc8801a0fb05cccf75f32ad7ad621cb6e974bf
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoAdd npm config script 67/7367/5
Jeremy Phelps [Mon, 6 Nov 2017 20:20:55 +0000 (14:20 -0600)]
Add npm config script

Change-Id: I12a9af7f6926660143e40b2382b44e7af606ff00
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoMerge "Move jjb-version to templates"
Jeremy Phelps [Tue, 7 Nov 2017 20:24:44 +0000 (20:24 +0000)]
Merge "Move jjb-version to templates"

7 years agoMerge "Add install goal to javadoc job"
Jeremy Phelps [Tue, 7 Nov 2017 17:46:35 +0000 (17:46 +0000)]
Merge "Add install goal to javadoc job"

7 years agoMove jjb-version to templates 74/7274/1
Thanh Ha [Fri, 3 Nov 2017 18:13:07 +0000 (14:13 -0400)]
Move jjb-version to templates

It appears that `job-group` definitions take priority over `project`
definitions. Move it to the template so that we can override the
parameter correctly.

Change-Id: I2b824e3cc89667698db8ebfdd3ce43f551e961d7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Add npmrc config file to lf-infra-wrappers"
Jeremy Phelps [Fri, 3 Nov 2017 15:26:06 +0000 (15:26 +0000)]
Merge "Add npmrc config file to lf-infra-wrappers"

7 years agoAdd npmrc config file to lf-infra-wrappers 57/6957/11
Jeremy Phelps [Wed, 18 Oct 2017 17:55:14 +0000 (12:55 -0500)]
Add npmrc config file to lf-infra-wrappers

Change-Id: I2bafb9a9787f6820243e1ee19861fb8fc45670d7
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoMerge "Add note on JJB defaults"
Anil Shashikumar Belur [Fri, 3 Nov 2017 14:52:53 +0000 (14:52 +0000)]
Merge "Add note on JJB defaults"

7 years agoAdd install goal to javadoc job 44/7244/4
Thanh Ha [Thu, 2 Nov 2017 14:36:59 +0000 (10:36 -0400)]
Add install goal to javadoc job

It turns out javadoc needs to have the artifacts available to them in
order to run javadoc:aggregate. In some cases this means artifacts
installed to the local maven repo. This patch adds the install goal as
well as ensuring we continue to skip tests, checkstyle, and findbugs to
keep the jobs running quick.

Change-Id: I3ffa36b207a1412e0489d6c20a91ffcd3ac93c27
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBump to v0.12.0-dev 55/7155/1
Thanh Ha [Mon, 30 Oct 2017 16:30:17 +0000 (12:30 -0400)]
Bump to v0.12.0-dev

Change-Id: I5eaaa3d84e66a0216225c9b4a16baedf4393d461
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease global-jjb v0.11.0 54/7154/3 v0.11.0
Thanh Ha [Mon, 30 Oct 2017 16:10:54 +0000 (12:10 -0400)]
Release global-jjb v0.11.0

Change-Id: Ieaf88baf73a8a1563164879555d25732303ebf8d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoCat the failed tox-envs 53/7153/3
Thanh Ha [Mon, 30 Oct 2017 15:50:18 +0000 (11:50 -0400)]
Cat the failed tox-envs

Before failing the build we should print the problematic tox
environments into the console to make it easier for folks to
troubleshoot. We are still archiving the individual tox runs but the
console logs will now also contain the errors.

Issue: RELENG-611
Change-Id: Ie6fd132c0de69e8448d320d23daaed811a0d47a1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd note on JJB defaults 78/7078/7
Thanh Ha [Wed, 25 Oct 2017 23:52:19 +0000 (09:52 +1000)]
Add note on JJB defaults

This patch provides additional clarification on how defaults are used in
JJB and when to expect the prioritization of variable expansion with
JJB.

Additionally add in intersphinx linking to jjb so that we can link
directly to JJB upstream documentation.

This documentation is based on details provided by Thanh Ha on the
OpenDaylight dev mailing list.

https://lists.opendaylight.org/pipermail/dev/2017-October/004184.html

Issue: RELENG-591
Change-Id: I65aaf933b88519dfbd1daaf8e00661146bc8c38f
Co-Authored-By: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd linting for RST files 34/7134/2
Thanh Ha [Fri, 27 Oct 2017 17:44:33 +0000 (13:44 -0400)]
Add linting for RST files

We should be linting our reStructuredText documentation as well.

Change-Id: Iff5c8f142a8dbc58550cc749c2742094bf13954d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix WriteGood lint errors 33/7133/1
Thanh Ha [Fri, 27 Oct 2017 18:42:48 +0000 (14:42 -0400)]
Fix WriteGood lint errors

Change-Id: I5e8331c42fa1dcfefac62f03d3e1f57eb8713c16
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoPin nodeenv version to 1.1.2 32/7132/1
Thanh Ha [Fri, 27 Oct 2017 17:49:25 +0000 (13:49 -0400)]
Pin nodeenv version to 1.1.2

This fixes an issue where you cannot run tox -e coala more than once.

Change-Id: Ied59caddfea7fe237007d987310f0ce35cd71ef4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMake javadoc-verify jobs run concurrently 11/7111/3
Thanh Ha [Fri, 27 Oct 2017 16:10:18 +0000 (12:10 -0400)]
Make javadoc-verify jobs run concurrently

We forgot to enable concurrency for the javadoc-verify job when we
created it. This patch fixes that.

Issue: RELENG-607
Change-Id: I622939f418ff254b6714eb28d296199cf86d9589
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Remove port from NEXUS_URL for netrc"
Thanh Ha [Mon, 23 Oct 2017 15:57:07 +0000 (15:57 +0000)]
Merge "Remove port from NEXUS_URL for netrc"

7 years agoMerge "Let NEXUSPROXY override NEXUS_URL if both are set"
Thanh Ha [Mon, 23 Oct 2017 15:55:34 +0000 (15:55 +0000)]
Merge "Let NEXUSPROXY override NEXUS_URL if both are set"

7 years agoRemove port from NEXUS_URL for netrc 29/7029/2
Trevor Bramwell [Wed, 18 Oct 2017 17:42:17 +0000 (10:42 -0700)]
Remove port from NEXUS_URL for netrc

If the NEXUS_URL or NEXUSPROXY contains a port, curl commands
will fail with 401 Unauthorized errors.

Change-Id: I611a7d88f35426b950f12534fba7e9e26618198d
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoLet NEXUSPROXY override NEXUS_URL if both are set 30/7030/1
Trevor Bramwell [Mon, 23 Oct 2017 03:12:02 +0000 (20:12 -0700)]
Let NEXUSPROXY override NEXUS_URL if both are set

NEXUS_URL will never be overridden by NEXUSPROXY when creating a netrc,
or deploy logs, unless NEXUS_URL is not explicitly set.

Change-Id: I0f22775d29f4c8cc577df70cc016a1db0ac578f1
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoMerge "Revert refspec change breaking submodule build"
Thanh Ha [Fri, 20 Oct 2017 20:44:01 +0000 (20:44 +0000)]
Merge "Revert refspec change breaking submodule build"

7 years agoMerge "Migrate Global JJB docs to RST"
Thanh Ha [Fri, 20 Oct 2017 20:43:32 +0000 (20:43 +0000)]
Merge "Migrate Global JJB docs to RST"

7 years agoUpdate packer version to 1.1.1 88/6988/1
Anil Belur [Fri, 20 Oct 2017 06:45:18 +0000 (16:45 +1000)]
Update packer version to 1.1.1

Change-Id: I95607aad0739700323fc36566e89ddf193dba576
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoRevert refspec change breaking submodule build 78/6978/1
Thanh Ha [Thu, 19 Oct 2017 14:02:22 +0000 (10:02 -0400)]
Revert refspec change breaking submodule build

Reverts change I65ef5886af59ec85841734f03bfac781194f780a which
introduced a breaking change for submodule projects inside a docs
project. Docs builds have a separate script which handles fetching
patches from Gerrit so should not be setting the refspec in the SCM
plugin.

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

7 years agoAdd M2_HOME to Maven parameters 75/6975/1
Thanh Ha [Thu, 19 Oct 2017 12:28:15 +0000 (08:28 -0400)]
Add M2_HOME to Maven parameters

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

7 years agoMigrate Global JJB docs to RST 96/6896/6
Thanh Ha [Sun, 15 Oct 2017 20:44:08 +0000 (16:44 -0400)]
Migrate Global JJB docs to RST

This moves Global JJB documentation into RST docs and adds a
new checker which parses YAML files for items that are missing
documentation to ensure that every new template addition comes with
supporting documentation.

Tried to update documentation where it made sense too but we should
probably go back later and review all the items to make sure they are
all sufficiently documented. Especially macros which in many places are
lacking in required parameter documentation.

Change-Id: I6551e14f934a904378771262d1491cb5b3df5854
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd note to release notes v0.9.0 34/6934/1
Jessica Wagantall [Tue, 17 Oct 2017 18:25:03 +0000 (11:25 -0700)]
Add note to release notes v0.9.0

A new commit (74befe2) in global-jjb v0.9.0 introduced
the usage of crudini package. Add a note in the
release notes to make sure this package is installed.

Change-Id: If14c8f15d749cd95db3c5708aa897ec4a5f4b0e9
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
7 years agoIgnore binary files when grepping 12/6912/2
Thanh Ha [Mon, 16 Oct 2017 18:16:08 +0000 (14:16 -0400)]
Ignore binary files when grepping

Change-Id: I798bda2e55036c3b4aab1cde2a07aca9d2191431
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Convert packer file-paths cfg to {obj:var}"
Andrew Grimberg [Mon, 16 Oct 2017 17:40:41 +0000 (17:40 +0000)]
Merge "Convert packer file-paths cfg to {obj:var}"

7 years agoUpdate RTD Gerrit job to check GERRIT_* variables 09/6909/4
Thanh Ha [Mon, 16 Oct 2017 17:14:07 +0000 (13:14 -0400)]
Update RTD Gerrit job to check GERRIT_* variables

This allows the job to handle branch '*' more easily..

Change-Id: I65ef5886af59ec85841734f03bfac781194f780a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Fix jjb-verify job to ignore the docs directory"
Andrew Grimberg [Mon, 16 Oct 2017 16:57:24 +0000 (16:57 +0000)]
Merge "Fix jjb-verify job to ignore the docs directory"

7 years agoFix jjb-verify job to ignore the docs directory 06/6906/2
Thanh Ha [Mon, 16 Oct 2017 16:31:01 +0000 (12:31 -0400)]
Fix jjb-verify job to ignore the docs directory

The non-ascii checker should not check the docs directory as that
directory does not contain jjb code.

Change-Id: I3ec988a308c67346f4ebe6cdd6e933a2f4637f5b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBump version to v0.11.0-dev 03/6903/1
Thanh Ha [Mon, 16 Oct 2017 15:54:32 +0000 (11:54 -0400)]
Bump version to v0.11.0-dev

Change-Id: I6ea1d089e82fcbdc287751783344942651e7b495
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease global-jjb v0.10.0 85/6885/5 v0.10.0
Thanh Ha [Sun, 15 Oct 2017 18:15:26 +0000 (14:15 -0400)]
Release global-jjb v0.10.0

Change-Id: If8918550d84c703a6704b0e955e0a430bcb74250
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoMerge "Add Maven job to build dependencies with patches"
Thanh Ha [Mon, 16 Oct 2017 15:31:33 +0000 (15:31 +0000)]
Merge "Add Maven job to build dependencies with patches"

7 years agoConvert packer file-paths cfg to {obj:var} 99/6899/2
Thanh Ha [Mon, 16 Oct 2017 02:56:06 +0000 (22:56 -0400)]
Convert packer file-paths cfg to {obj:var}

This is a standard we are using in most jobs so let's follow it with the
CI jobs as well. Looks like the packer jobs were already documented for
this but never actually implemented the feature.

The merge job unfortunately cannot be converted to the format due to
it's use of {platform} and {template} variables unless we want to make
it use the same file-paths as the verify job is now using.

Change-Id: Ie2976506e109f0e90ae26b4b6e4492d6b112b73a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Migrate node-verify job to global-jjb"
Thanh Ha [Mon, 16 Oct 2017 02:05:02 +0000 (02:05 +0000)]
Merge "Migrate node-verify job to global-jjb"

7 years agoAdd missing documentation to rtd jobs 93/6893/4
Thanh Ha [Sun, 15 Oct 2017 19:03:02 +0000 (15:03 -0400)]
Add missing documentation to rtd jobs

Change-Id: I1e0f97f3824aef4c18c4975931b388a41686e8bd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd missing documentation for Python jobs 92/6892/4
Thanh Ha [Sun, 15 Oct 2017 19:00:27 +0000 (15:00 -0400)]
Add missing documentation for Python jobs

Change-Id: I985f14b50187b70d5d12872318c68acfcca5378b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd missing stream documentation to maven docs 91/6891/2
Thanh Ha [Sun, 15 Oct 2017 18:57:29 +0000 (14:57 -0400)]
Add missing stream documentation to maven docs

Change-Id: I653707b9384c7b4170a53f738500bcecf72a8423
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRemove doc for unused parameter 90/6890/2
Thanh Ha [Sun, 15 Oct 2017 18:55:46 +0000 (14:55 -0400)]
Remove doc for unused parameter

Change-Id: If2d6d5ee2b6c7f6e221ff3499f3060cb018772f2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd missing documentation from maven jobs 88/6888/1
Thanh Ha [Sun, 15 Oct 2017 18:49:33 +0000 (14:49 -0400)]
Add missing documentation from maven jobs

Change-Id: I71b7774c01e8e7ddb0ac8768d9ec7b0e7714ddc7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoStandardize gerrit_[merge|verify]_triggers 87/6887/1
Thanh Ha [Sun, 15 Oct 2017 18:40:43 +0000 (14:40 -0400)]
Standardize gerrit_[merge|verify]_triggers

It turns out you can override per job definition inside of a projects
declaration so let's standardize the trigger wording so that they are
the same everywhere.

Change-Id: Id489a3b04242183a35d56bb938c66b4b486a1d1f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMake staging-profile-id optional 86/6886/1
Thanh Ha [Sun, 15 Oct 2017 18:36:09 +0000 (14:36 -0400)]
Make staging-profile-id optional

Only the release job needs staging-profile-id so set a default of empty
for all other Maven templates.

Change-Id: Id53073377af415a0345f2aeef6637c5bb4a9d559
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoSleep between 1 - 10 seconds for tox 82/6882/2
Thanh Ha [Sat, 14 Oct 2017 19:52:03 +0000 (15:52 -0400)]
Sleep between 1 - 10 seconds for tox

Adds a random 1 - 10 second sleep to workaround parallel tox runs using
the same sdist directory to build a package and failing due to tripping
over itself.

Change-Id: I5054c839dabc3fac3cc814c08bc6568f99485d0d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMigrate node-verify job to global-jjb 81/6681/6
Anil Belur [Tue, 3 Oct 2017 21:10:52 +0000 (07:10 +1000)]
Migrate node-verify job to global-jjb

Add a NodeJS verify job which uses nodeenv (Python project) to install
NodeJS and then runs `npm install` & `npm test`.

Issue: RELENG-241
Change-Id: Ia120cf804e530ab7d940b96d48ba6524fcf51f0f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd Maven job to build dependencies with patches 41/6841/5
Thanh Ha [Fri, 13 Oct 2017 03:34:15 +0000 (23:34 -0400)]
Add Maven job to build dependencies with patches

Provide a Maven job that can verify a patch including firstly building
projects it depends on with their patches first. This allows projects to
validate a patch that has upstream project dependencies which need to be
merged first.

Requires a new global variable to be defined in Jenkins GERRIT_URL
containing the base path to the Gerrit Web UI.

Issue: RELENG-526
Change-Id: Ie9ccb88c21ab5674d0156566da1daee4aa43d641
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBump Sphinx minimal dependencies to latest 76/6876/1
Thanh Ha [Sat, 14 Oct 2017 15:05:38 +0000 (11:05 -0400)]
Bump Sphinx minimal dependencies to latest

Change-Id: I5c032ea889b7a17be9614516e3e51a2963b068c6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd LF Logo 73/6873/1
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>
7 years agoAdd custom navbar ala OpenDaylight docs 70/6870/1
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>
7 years agoFix packer verify file path triggering 60/6860/2
Andrew Grimberg [Fri, 13 Oct 2017 20:38:21 +0000 (13:38 -0700)]
Fix packer verify file path triggering

Packer verifies are not properly triggering because the generated ANT
paths are non-resolvable

Change-Id: I3938ca653ab0fba7190ea8caf3715bf7757be4f7
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agoFix cross link 52/6852/1
Thanh Ha [Fri, 13 Oct 2017 17:29:33 +0000 (13:29 -0400)]
Fix cross link

Change-Id: I4eaefa4f8e0e64299a98f8bd1519831704be5fcb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMove best practices to global-jjb 51/6851/2
Thanh Ha [Fri, 13 Oct 2017 17:45:35 +0000 (13:45 -0400)]
Move best practices to global-jjb

Change-Id: I0fb2743438658f775fd321cd27422ceee017be78
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBootstrap global-jjb docs 50/6850/3
Thanh Ha [Fri, 13 Oct 2017 17:29:33 +0000 (13:29 -0400)]
Bootstrap global-jjb docs

Just initialize the docs. Content to come in the next patch.

Change-Id: I2d85ee37e2fca3039b12438220401e6f24e69dbc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd more required Jenkins plugins 44/6844/1
Andrew Grimberg [Fri, 13 Oct 2017 14:58:43 +0000 (07:58 -0700)]
Add more required Jenkins plugins

* Git plugin is required by all Jenkins systems using global-jjb

* Create new Gerrit and GitHub sections which details plugins that are
required for a Jenkins that services requests from that SCM service

Change-Id: If0f3f3a5bfd313aa15da96fd2247c9b1fe1b7c6a
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agostaging-profile-id unnecessary for javadoc jobs 40/6840/1
Thanh Ha [Fri, 13 Oct 2017 01:37:58 +0000 (21:37 -0400)]
staging-profile-id unnecessary for javadoc jobs

This parameter is not used at all in javadoc jobs so set to a blank
default so that projects do not have to define this if they want to use
the javadoc jobs.

Change-Id: If97fff08c72d32798cd724d84c29b9cdafe11c0d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdate required plugins list 33/6833/1
Andrew Grimberg [Thu, 12 Oct 2017 21:45:17 +0000 (14:45 -0700)]
Update required plugins list

The Environment Injector Plugin is a required plugin for log shipping
purposes.

Change-Id: I71551c59291e4db69a5b9dc92a351f9449e9af13
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
7 years agoDo not trigger on drafts before Publish 16/6716/5
Vratko Polak [Fri, 6 Oct 2017 15:51:12 +0000 (17:51 +0200)]
Do not trigger on drafts before Publish

This way, uploading drafts will tie less resources.
Contributors can still recheck drafts manually
if they want them verified before hitting the Publish button.

Change-Id: Ifeddbb2fcde7d56b768ca8d31bcc3eeb1050ff1d
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
7 years agoFix unescaped * in if-statement 61/6661/2 v0.9.1
Thanh Ha [Mon, 2 Oct 2017 21:34:58 +0000 (17:34 -0400)]
Fix unescaped * in if-statement

Change-Id: I8e45a1adc13f4da0e7386371678f6364670f5c38
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease global-jjb v0.9.0 33/6633/2 v0.9.0
Thanh Ha [Fri, 29 Sep 2017 17:04:46 +0000 (13:04 -0400)]
Release global-jjb v0.9.0

Change-Id: If902162ff4a18828a23ab3dfedf05a70c7acdd79
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "DO NOT hardcode mvn staging server id"
Jeremy Phelps [Fri, 29 Sep 2017 12:29:42 +0000 (12:29 +0000)]
Merge "DO NOT hardcode mvn staging server id"

7 years agoMerge "Add maven-javadoc jobs"
Jeremy Phelps [Fri, 29 Sep 2017 12:29:37 +0000 (12:29 +0000)]
Merge "Add maven-javadoc jobs"

7 years agoAdd timed parameter to lf-maven-release anchor 08/6608/4
Jeremy Phelps [Thu, 28 Sep 2017 19:22:43 +0000 (14:22 -0500)]
Add timed parameter to lf-maven-release anchor

Timed parameter is to specify a cron schedule
for the job to run.

Change-Id: Ic08983b4ceed2f05896471fa50797e0351e191f8
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoDO NOT hardcode mvn staging server id 05/6605/1
Thanh Ha [Thu, 28 Sep 2017 17:34:36 +0000 (13:34 -0400)]
DO NOT hardcode mvn staging server id

This needs to be configured in defaults.yaml to get the right one.

Change-Id: I8d54118999eb912c3074c4bb2f9b5237bea93ebe
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd maven-javadoc jobs 76/6576/4
Thanh Ha [Wed, 27 Sep 2017 18:31:23 +0000 (14:31 -0400)]
Add maven-javadoc jobs

Create jobs that run javadoc:aggregate to generate javadocs and publish
them to Nexus via the javadoc repo.

Issue: RELENG-482
Change-Id: I07f62abfdd3a63b48838d2421dacfc876c9a007c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Run tox envs separately and capture logs"
Jeremy Phelps [Thu, 28 Sep 2017 16:33:12 +0000 (16:33 +0000)]
Merge "Run tox envs separately and capture logs"

7 years agoMerge "RTD Merge job GTriggers should be overridable"
Andrew Grimberg [Thu, 28 Sep 2017 16:23:33 +0000 (16:23 +0000)]
Merge "RTD Merge job GTriggers should be overridable"

7 years agoRun tox envs separately and capture logs 60/6160/7
Thanh Ha [Fri, 25 Aug 2017 17:54:33 +0000 (13:54 -0400)]
Run tox envs separately and capture logs

Run the tox envlist as separate tox runs so that we can capture the logs
in separate files for easier troubleshooting.

This patch requires the vm to have the 'crudini' package installed.

Change-Id: I05e01668af6b84c38c10b24353a2157bfa8d5b23
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoDocs needs to be built from the $WORKSPACE 39/6539/4
Thanh Ha [Tue, 19 Sep 2017 17:59:34 +0000 (13:59 -0400)]
Docs needs to be built from the $WORKSPACE

Otherwise it will build from the submodule because of the if-statement
above. This breaks the job in cases where a project has submodules.

Change-Id: I06d6291d3329da142ecdbebfb4ac1a866108ef0b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRTD Merge job GTriggers should be overridable 37/6537/1
Thanh Ha [Sun, 17 Sep 2017 04:32:10 +0000 (00:32 -0400)]
RTD Merge job GTriggers should be overridable

Change-Id: I2193129790709c2232ebcd283e25cca8efb978e3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix RTD Verify job Gerrit Triggers 29/6529/4
Thanh Ha [Sun, 17 Sep 2017 04:32:10 +0000 (00:32 -0400)]
Fix RTD Verify job Gerrit Triggers

The verify job was incorrectly setup as a merge job trigger causing
RTD builds to not trigger as expected.

Change-Id: I2502eff209deb7b077e64c620c77d4ecbfbc9a8e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix bug that removed custom docker registry 61/6461/1
Jeremy Phelps [Mon, 11 Sep 2017 22:32:14 +0000 (17:32 -0500)]
Fix bug that removed custom docker registry

Inadvertently removed the custom docker
param in an ealier bug fix that was not related.

Change-Id: Ie4f3673be8f636ee1200ed6c308a42a05078ae51
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoAdd job to deploy to sandbox 19/6419/8
Thanh Ha [Fri, 8 Sep 2017 01:40:56 +0000 (21:40 -0400)]
Add job to deploy to sandbox

This job allows a contributor to leave a comment for example
'jjb-deploy builder-jjb-*' to deploy a job (or several jobs if wildcards
are used) to the Jenkins Sandbox.

This allows jjb contributors to no longer have to install jjb on their
local systems in order to push the job to the Jenkins Sandbox.

ATTN: GitHub version of the job is untested and likely does NOT work as
      currently designed.

Issue: RELENG-373
Change-Id: I4f26c640804a0b7db1a0087cbd805b9263821326
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd trigger for launching release job via comment 55/6355/2
Thanh Ha [Wed, 6 Sep 2017 23:23:28 +0000 (19:23 -0400)]
Add trigger for launching release job via comment

Allows the release job to be triggered via Gerrit / GitHub PR comment.
This allows contributors to initiate a release build without needing
permissions via Jenkins directly.

Issue: RELENG-426
Change-Id: I2c75f607cc57471afb49fa0347bb130af214ea4b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Create job to lock|unlock branches via Gerrit"
Andrew Grimberg [Thu, 7 Sep 2017 14:07:09 +0000 (14:07 +0000)]
Merge "Create job to lock|unlock branches via Gerrit"

7 years agoMerge "Allow project-pattern to be overridable" v0.8.2
Jeremy Phelps [Thu, 7 Sep 2017 00:20:08 +0000 (00:20 +0000)]
Merge "Allow project-pattern to be overridable"

7 years agoRemove rtd-project incorrectly labelled required 65/6365/1
Thanh Ha [Wed, 6 Sep 2017 23:56:29 +0000 (19:56 -0400)]
Remove rtd-project incorrectly labelled required

rtd-project is not a required parameter for the rtd-verify job. In fact
it's not used at all in the job.

Change-Id: Iea9ba7a6101c130e77d60cfb6536c9be7f12d5b2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAllow project-pattern to be overridable 64/6364/2
Thanh Ha [Wed, 6 Sep 2017 23:49:27 +0000 (19:49 -0400)]
Allow project-pattern to be overridable

While the ** pattern is good for global docs projects like the
OpenDaylight docs project. If projects have their own standalone
documentation such as lftools we need to be able to set project-pattern
to the exact project. This ensures that Gerrit won't start a lftools
build when a trigger happens on any other project in the Gerrit system.

Change-Id: I46c7d0d45eb7ea82230437648ff23e81baab07f1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoCreate job to lock|unlock branches via Gerrit 45/6245/6
Thanh Ha [Wed, 30 Aug 2017 21:56:55 +0000 (17:56 -0400)]
Create job to lock|unlock branches via Gerrit

A contributor can leave a comment "lock|unlock branch" in Gerrit comment
which triggers a job to submit a patch to Gerrit for the project to lock
or unlock their branch.

Locking refers to removing the permission to click the Submit button in
the project's branch effectively disallowing new patches to be merged
into the repo. This job simply generates and submits a patch. A project
committer still needs to approve it.

Issue: RELENG-424
Change-Id: Id489d931037c76bdcad032ec44b0ce748bdffe81
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Fix docker-login to conditionally use -e" v0.8.1
Andrew Grimberg [Tue, 5 Sep 2017 18:51:47 +0000 (18:51 +0000)]
Merge "Fix docker-login to conditionally use -e"

7 years agoFix docker-login to conditionally use -e 18/6318/1
Jeremy Phelps [Tue, 5 Sep 2017 18:37:57 +0000 (13:37 -0500)]
Fix docker-login to conditionally use -e

The -e/--email flag was removed in docker version
17.06.0.  Do not use if equal or less than that version.

Change-Id: I69335d8ff068fbb180de284317d02f21b8b7e552
JIRA: RELENG-452
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoRelease global-jjb v0.8.0 13/6313/2 v0.8.0
Thanh Ha [Tue, 5 Sep 2017 16:01:03 +0000 (12:01 -0400)]
Release global-jjb v0.8.0

Change-Id: Ife11163e99194bd9b43efee47f9601e3adbc5710
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoGeneralize odl rtd jobs for global-jjb 43/5643/51
Jeremy Phelps [Wed, 26 Jul 2017 21:25:05 +0000 (16:25 -0500)]
Generalize odl rtd jobs for global-jjb

Change-Id: I35bdd1629c4f1079131048a8a8f41f09949796ff
JIRA: RELENG-240
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Add update-expected-xml call"
Anil Shashikumar Belur [Fri, 1 Sep 2017 04:10:24 +0000 (04:10 +0000)]
Merge "Add update-expected-xml call"

7 years agoMerge "Add lf-pip-install macro to handle pypi packages"
Anil Shashikumar Belur [Fri, 1 Sep 2017 04:08:48 +0000 (04:08 +0000)]
Merge "Add lf-pip-install macro to handle pypi packages"

7 years agoAdd update-expected-xml call 70/6270/1
Thanh Ha [Thu, 31 Aug 2017 21:43:32 +0000 (17:43 -0400)]
Add update-expected-xml call

Simplify the process of updating the expected-xml by adding a command to
tox.

Change-Id: I02a9f07272baab3fd0dd4407cdb0afb3ffd6e3c7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRe-order maven jobs alphabetically 46/6246/1
Thanh Ha [Thu, 31 Aug 2017 02:54:52 +0000 (22:54 -0400)]
Re-order maven jobs alphabetically

Change-Id: Ibc3d91e21d59614fc8e0ed3402e43b986a185759
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd lf-pip-install macro to handle pypi packages 44/6244/1
Thanh Ha [Wed, 30 Aug 2017 23:08:53 +0000 (19:08 -0400)]
Add lf-pip-install macro to handle pypi packages

This creates a generically reusable pip-install macro that can be used
to install pypi packages into a virtualenv. The script uses the first
package name from {pip-packages} as the name of the virtualenv it
creates.

Change-Id: Iabe4005efcb0a79af48d3c83d854f4e101414737
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Fix tox-run.sh print statement"
Andrew Grimberg [Tue, 29 Aug 2017 16:04:13 +0000 (16:04 +0000)]
Merge "Fix tox-run.sh print statement"

7 years agoMigrate sonar job 19/6119/4
Thanh Ha [Wed, 23 Aug 2017 23:15:38 +0000 (19:15 -0400)]
Migrate sonar job

This patch uses OpenDaylight Maven Sonar job as a base and modifies it
to be more generic for use in global-jjb.

Changes from original:

- Support overriding Sonar Gerrit Triggers.
- Use maven deploy goal rather than install. End result is the same but
  deploy sends artifacts to a staging repo which we can check if needed.

Issue: RELENG-243
Change-Id: Ided78015ced8b2d4b42ed452b704e1fe65770a01
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFix tox-run.sh print statement 59/6159/2
Thanh Ha [Fri, 25 Aug 2017 17:42:53 +0000 (13:42 -0400)]
Fix tox-run.sh print statement

Change-Id: I11721f0e292cddfd7eb05c26866ed274fa7116c8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Update .gitignore"
Andrew Grimberg [Tue, 29 Aug 2017 15:39:57 +0000 (15:39 +0000)]
Merge "Update .gitignore"