Alexandru Avadanii [Tue, 23 Apr 2019 17:03:58 +0000 (19:03 +0200)]
Add submodule-disable for submodule operations
Some Akraino projects using git scm have a large number of submodules
which are not required during most CI/CD operations (e.g. we don't
want to fetch GBs of 3rd party repositories when linting the code).
Add submodule-disable parameter for both lf-infra-gerrit-scm
and lf-infra-github-scm, allowing us to disable submodule fetching
where needed.
Jenkins git plugin support for this was added in [1].
This change is very similar and mostly based on the addition of the
submodule-timeout parameter in commit
9fdb611f1.
[1] https://issues.jenkins-ci.org/browse/JENKINS-6658
Change-Id: Ia99ba7f353a39e55d7bec57778f447f94402b5e6
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Lott, Christopher (cl778h) [Thu, 2 May 2019 15:58:18 +0000 (11:58 -0400)]
Invoke mvn goal 'install' not deploy in new verify job
Change-Id: I2ac52d56c5ede921d39e6a12ae06d888916be14b
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Lott, Christopher (cl778h) [Wed, 1 May 2019 10:30:36 +0000 (06:30 -0400)]
Remove maven-versions-plugin-set-version var
Clean up newly added maven-docker-stage macro that missed a recent change.
This is a variable that does not need to be defined by the users of the jobs.
The version needed in this builder step is inherited from versions.properties
as "release_version". This also helps teams not having to define this version
in 2 places and just rely on version.properties.
Change-Id: I41083ed784982b904e12edf52d1f8e73a249b13d
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Anil Belur [Wed, 1 May 2019 03:47:36 +0000 (03:47 +0000)]
Merge "Define maven + docker verify, merge and stage jobs"
Lott, Christopher (cl778h) [Wed, 1 May 2019 03:32:13 +0000 (13:32 +1000)]
Define maven + docker verify, merge and stage jobs
This generalizes work first done for Acumos Java projects
that build a Spring-Boot application into a Docker image,
and do not need to deploy any jar libraries or POM files.
Change-Id: Id8040fe2d32ffe4f682f80ec5c4ed60327ef56bd
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Jessica Wagantall [Tue, 30 Apr 2019 00:31:14 +0000 (17:31 -0700)]
Remove maven-versions-plugin-set-version var
This is a variable that does not need to be defined by the users
of the jobs. The version needed in this builder step is inherited
from versions.properties as "release_version" and it is fixed as
that.
This also helps teams not having to define this version in 2
places and just rely on version.properties.
This upgrade only affects projects using maven-versions-plugin
to update their versions (ONAP).
Change-Id: I6393291eb555ed0b8f5220264688193c1af9fd5f
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Tim Johnson [Thu, 25 Apr 2019 15:18:36 +0000 (08:18 -0700)]
Update jenkins-init script example
Update example jenking-init script to send stdout/stderr to a file.
Change-Id: I5a91858d1724da41139255f2314c2c6f691070de
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Andrew Grimberg [Thu, 25 Apr 2019 21:18:15 +0000 (21:18 +0000)]
Merge "Make stripping of "SNAPSHOT" in poms optional"
Jessica Wagantall [Mon, 22 Apr 2019 21:42:08 +0000 (14:42 -0700)]
Make stripping of "SNAPSHOT" in poms optional
When maven-versions-plugin is set to "true", the job will
use the versions plugin to update the versions in the pom.xml
files and will not need this step in maven-patch-release.sh to
happen.
This change DOES NOT affect current jobs which do not use the
maven versions plugin as this variable is set to false by default.
Update maven-versions-plugin variable in the parameters to be able
to parse the value in the scripts.
Change-Id: Ic25197012fd0f23a859159bb86369feb8a02b9c2
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Tim Johnson [Thu, 25 Apr 2019 00:08:25 +0000 (17:08 -0700)]
Fix warning generated by deprecated syntax
Change-Id: Ib8ad97621527ec9869fdc743490706d9c9957df2
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Andrew Grimberg [Wed, 24 Apr 2019 15:30:35 +0000 (08:30 -0700)]
Move Maven Central staging docs
The Maven CLM job docs had the staging variables for Maven Central
defined in it instead of in the Maven Stage job docs. This is both
confusing, and incorrect!
Change-Id: Icb05a8d717f1120ec30fa0c523295fe88f3fdcb7
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Tim Johnson [Tue, 9 Apr 2019 21:41:20 +0000 (14:41 -0700)]
Reduce output in log files
Previously ran 'pip freeze' (> log) twice to get list of pip packages
installed during build. Run 'pip list' (> file) twice and archive the
files and diffs. Configured 'logs-deploy.sh' to run as separate Jekins
script.
Issue: RELENG-1902
Change-Id: Ib0f99bd1eb125015467c7eaf91d26c76e92bffa0
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Tim Johnson [Sat, 20 Apr 2019 18:53:55 +0000 (11:53 -0700)]
Fix execute permissions
Change-Id: I253ed35ec78f51d4b2352539d2d24260edde5459
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Thanh Ha (zxiiro) [Mon, 22 Apr 2019 11:15:16 +0000 (11:15 +0000)]
Merge "Upgrade packer version to 1.4.0"
Andrew Grimberg [Fri, 19 Apr 2019 21:48:01 +0000 (14:48 -0700)]
Fix gerrit-packer-merge choosing strategy
Our definition of a merge job is that it always takes the HEAD of the
branch. Gerrit Trigger choosing strategy does not do this and breaks
expected outcomes when retriggering an old merge.
Change-Id: I2e3c12f1c9b59e624e742943a5dbef5123129e6c
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Fri, 19 Apr 2019 18:34:37 +0000 (11:34 -0700)]
Upgrade packer version to 1.4.0
The next release of common-packer requires packer 1.3.2 or greater.
Update to 1.4.0 as it is the current release and has been verified to
work properly.
Change-Id: Iec56190d26ff98dfaf5df1346dc82e7995ab640c
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Mon, 15 Apr 2019 11:09:11 +0000 (21:09 +1000)]
Add missing script name markers
Add missing script name markers useful in console logs.
Change-Id: I3c0768d3d5def6258bb8a5e556d78b4836fa957e
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Fri, 12 Apr 2019 01:17:16 +0000 (11:17 +1000)]
Update lftools to v0.23.1
Change-Id: I4289796af1e455a6ab1f6e59b29da60d46b6b1d1
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Jessica Wagantall [Thu, 11 Apr 2019 21:35:22 +0000 (21:35 +0000)]
Merge "Add lf-infra-wss-mvn-clean-install step"
Anil Belur [Thu, 11 Apr 2019 12:29:45 +0000 (22:29 +1000)]
Update jenkins-cfg-verify to use $GERRIT_REFSPEC
Update jenkins-cfg to verify images names updated from the
$GERRIT_REFSPEC instead of the master branch.
Current implementation uses the 'master' branch instead of
the $GERRIT_REFSPEC, therefore failing the verify job
on false positives.
Issue: RELENG-1950
Change-Id: I6f212b28e4189ff5c7958035c7992b55d7153d02
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Jessica Wagantall [Thu, 11 Apr 2019 05:14:13 +0000 (22:14 -0700)]
Add lf-infra-wss-mvn-clean-install step
Add Maven clean install conditional step
that runs before WhiteSource Unified Agent scan.
This allows to fetch additional dependencies.
Issue: RELENG-1951
Change-Id: Id3e070220e17ba995d976b3d033a16983b38fd8d
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Jessica Wagantall [Thu, 11 Apr 2019 00:16:16 +0000 (17:16 -0700)]
Hardcode WSS project version
Similarly to how is done in CLM, the WhiteSource
versions for projects should reflect the branch they are
running on.
Also fix script variables to be enclosed by "{}".
Change-Id: Ica0a52adcc9223e861f213bc53c67ed2102efda5
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Jessica Wagantall [Wed, 10 Apr 2019 23:37:51 +0000 (16:37 -0700)]
Use WS Agent config file internally
After checking with legal, it was agreed to not
allow tech teams to provide their own
wss-unified-agent.config file for WhiteSource scans.
Instead, this file should be managed in Jenkins Settings
Files
Change-Id: I20e330794ba28cb4c0f5206c290a734c1794b00e
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Aric Gardner [Tue, 9 Apr 2019 17:31:24 +0000 (17:31 +0000)]
Merge "Fixes for info votes"
Aric Gardner [Tue, 9 Apr 2019 17:29:36 +0000 (17:29 +0000)]
Merge "Add missing release notes."
Aric Gardner [Thu, 4 Apr 2019 19:56:01 +0000 (15:56 -0400)]
Fixes for info votes
gerrit trigger is not working in opnfv.
we had this happen to some of the read the docs jobs...
An updgrade of gerrit is planned to hopefully resolve this.
Not sure were to test to approval category stuff.
That said I think the mistake is that the value is an int.
approval-category: 'WHATEVER'
approval-value: 2
I dont actually want the script to exit on first error, need to output
the vote verdict.
not sure why I thought that JENKINS_SSH_CREDENTIAL
was the correct var for the ssh user.
switched to $USER
Change-Id: I6714361423948eb1764e9c18da699dafd4cd24a9
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Aric Gardner [Mon, 8 Apr 2019 17:36:03 +0000 (13:36 -0400)]
Add missing release notes.
Commit
b2e2b5b7d3bb61ee9886debb4e010769c35be398
was missing release notes.
Change-Id: If6adc956f92113e80177930b82ba20872b4e009f
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Thanh Ha [Mon, 8 Apr 2019 03:41:07 +0000 (11:41 +0800)]
Update rtd-merge to also trigger on tag changes
When we release a tag, it should also trigger a rtd-merge build
so that the doc release note link is updated appropriately.
Change-Id: I49f6555b707018cca4042917c4193138456dafeb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Martin Klozik [Fri, 5 Apr 2019 14:05:07 +0000 (16:05 +0200)]
ARM64 support for update-java-alternatives
Java paths at Ubuntu contain host CPU architecture signature.
Script was updated to correctly detect architecture by dpdk.
Change-Id: I77c4aba1d600373edff283b6b85837fccda3af34
Signed-off-by: Martin Klozik <martin.klozik@tieto.com>
Andrew Grimberg [Thu, 4 Apr 2019 22:39:32 +0000 (15:39 -0700)]
Fix bug in package-listing start script
Change
af89ef784234e7b89984d5b2995fc6d29b6d8c34 introduced a bug where
we don't make sure that the package-listing.sh script is executable
before calling it during system startup. This means that we are no
longer currently producing the needed listing start file for instances
to be able to diff against to give us a view of package changes.
Change-Id: Iea2f0b07cdf10f7819072bcb00596bdeda4665df
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Jessica Wagantall [Thu, 4 Apr 2019 21:15:38 +0000 (21:15 +0000)]
Merge "Fix global-jjb docs for installation"
Andrew Grimberg [Thu, 4 Apr 2019 19:32:10 +0000 (12:32 -0700)]
Fix global-jjb docs for installation
The docs copy / paste script use the GitHub submodule but don't properly
name the resultant module to match the expectations of the rest of the
script.
Fix up some minor inconsistencies / errors of other parts of script
Change-Id: I66402d9ef1be80c1dd53c51d55802a864c813421
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Jessica Wagantall [Thu, 4 Apr 2019 19:59:03 +0000 (19:59 +0000)]
Merge "Add WhiteSource Scan jobs"
Jessica Wagantall [Fri, 22 Mar 2019 00:56:15 +0000 (17:56 -0700)]
Add WhiteSource Scan jobs
WhiteSource is an open source security and license compliance
management platform.
It is used to scan a great variety of languages includding Java,
Python, C, Go, among others.
{project-name}-whitesource-scan-{stream} uses WhiteSource's
Unified Agent to perform the code scans.
Issue: RELENG-1876
Change-Id: If511da2f51e08799352ee6841338f76dd63af6b6
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Aric Gardner [Wed, 3 Apr 2019 17:47:34 +0000 (13:47 -0400)]
Update lftools to version v0.22.2
Change-Id: Ic1e44a73813dd42c9b376547cc4814f1d63b6ab4
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Andrew Grimberg [Wed, 3 Apr 2019 16:26:30 +0000 (16:26 +0000)]
Merge "INFO.yaml check vote for global-jjb"
Aric Gardner [Tue, 2 Apr 2019 18:28:57 +0000 (14:28 -0400)]
Add comment-to-gerrit macro
This macro will post a comment to the gerrit patchset if the build
creates a file named gerrit_comment.txt
To use this macro add it to the list of builders
Change-Id: I30e2b10fc4e09f534b161dd99775d66bdc4c3e1a
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Aric Gardner [Mon, 25 Mar 2019 20:35:34 +0000 (16:35 -0400)]
INFO.yaml check vote for global-jjb
Global job per gerrit, that triggers on changes
to INFO.yaml file
And auto merged if a majority of committers
have voted.
This will create a review in the internal gerrit
If a tsc vote is required, RE must manually confirm
that this has happened.
We will need to give
Non-Interactive Users merge
or perhaps specifically only the jenkins
user.
Job will only trigger when a user votes +2
cludgy but it works.
Example of Job configuration:
- project:
name: info-vote
build-node: centos7-builder-2c-1g
jobs:
- 'info-vote-verify'
Change-Id: Ib386bd2ea51be113ca59610bd3281b9ad6923bce
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Bengt Thuree [Tue, 2 Apr 2019 00:45:41 +0000 (17:45 -0700)]
Revert Add tox-verify job to the default ci group
This reverts commit
059f6382bcbe1549201773eb4d881d43724ca8a9.
Merged it to quickly, need to ensure all projects has tox.ini
and .coafile linting in place first.
Change-Id: I083fcb526d1858d15decb58d4138f9dcc9cc600a
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Bengt Thuree [Tue, 2 Apr 2019 00:40:16 +0000 (00:40 +0000)]
Merge "Add tox-verify job to the default ci group"
Thanh Ha [Wed, 27 Mar 2019 17:27:19 +0000 (13:27 -0400)]
Allow jjb-workers to be configurable
Default it to the number of CPU cores available on the system.
Issue: RELENG-917
Change-Id: I5f65ec7d7142f1a778b6e31cc6700ca2bca1ef88
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 27 Mar 2019 17:16:03 +0000 (13:16 -0400)]
Skip creating source jars in verify job
Issue: RELENG-1655
Change-Id: Ibd2aad63afda3feb97619cef67c10c8b665cd924
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 20 Sep 2018 15:16:01 +0000 (11:16 -0400)]
Add tox-verify job to the default ci group
This ensures our projects are running linters against the prjoect.
Change-Id: I5ce38eeecef8f1241a49dfe7da3eb04fec7ac385
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Anil Belur [Tue, 26 Mar 2019 02:05:30 +0000 (12:05 +1000)]
Update lftools to version v0.22.1
Change-Id: I728e3581f956cd56cc0446f2a3360bd9e71df6af
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 21 Mar 2019 23:28:14 +0000 (09:28 +1000)]
Update lftools to version 0.22.0
Change-Id: I545662ee1cf31e1609971c08bb75555acf384139
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 21 Mar 2019 21:41:00 +0000 (21:41 +0000)]
Merge "Fix JAVA_HOME for CentOS7"
Vanessa Rene Valderrama [Wed, 20 Mar 2019 20:15:27 +0000 (15:15 -0500)]
Fix JAVA_HOME for CentOS7
JAVA_HOME for JDK-11 on CentOS7 is set to /opt/jdk-11 but JDK-11 is
installing in /usr/lib/jvm/java-11-openjdk/.
This change is to modify JAVA_HOME to use the correct path and install
JDK-11 properly.
Change-Id: I598a063988a5afea5d6827d0940fdcbd2b83e99a
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Trevor Bramwell [Fri, 9 Nov 2018 05:43:54 +0000 (21:43 -0800)]
Add Throttle Property to JJB jobs
This adds "Throttle Builds" configuration to JJB jobs (verify, merge,
etc) to allow global-jjb users with static builders to limit the number
of jjb jobs ran on a single node.
Issue: RELENG-1510
Change-Id: I00d2950451eae8037ded407937131723b0001179
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Eric Ball [Wed, 20 Mar 2019 00:51:34 +0000 (17:51 -0700)]
Adapt maven path search for files and dirs
The "-f" maven param can specify both a directory, in which case it
will look for "pom.xml" in the directory, or a specific file. The
original version of this search was only compatible with directories
that contain a pom.xml file.
Change-Id: I81ab161f3156fc2159a4b7ca9ca084a0f82da795
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Anil Belur [Wed, 20 Mar 2019 21:50:01 +0000 (21:50 +0000)]
Merge "Extract version number passed set '{java-version}'"
Jessica Wagantall [Wed, 13 Mar 2019 01:08:21 +0000 (18:08 -0700)]
Add set version conditional step
Add conditional step for gerrit-maven-stage to optionally
run the versions maven plugin using the versions.properties
file.
Issue: RELENG-1860
Change-Id: I4bea0ae911a79db7ef238f5ece619be6270e2256
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Tim Johnson [Mon, 4 Mar 2019 18:33:59 +0000 (10:33 -0800)]
Cleanup Jenkins init scripts
RELENG-1856 Cleanup Jenkins init scripts Make scripts portable so the
ci-management can be installed anywhere. Update README comments. All
changes should be backward compatible.
Change-Id: I5ce6f76cfa0483b7a1b91b72ae1264c21e769dba
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Anil Belur [Fri, 15 Mar 2019 02:05:10 +0000 (12:05 +1000)]
Extract version number passed set '{java-version}'
When the version number string is multi-digits ex: openjdk11
"${SET_JDK_VERSION: -1}" returns '1' which is incorrect.
The change fixes version number extraction for the string
passed to env variable $SET_JDK_VERSION.
Also update the regex to handle values with special chars.
Issue: RELENG-1853
Change-Id: I52c49fec007bad70d4a42d4c20a45b35fec3997c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Bengt Thuree [Thu, 14 Mar 2019 02:22:23 +0000 (02:22 +0000)]
Merge "Document required params in lf-maven-stage macro"
Bengt Thuree [Thu, 14 Mar 2019 02:12:38 +0000 (02:12 +0000)]
Merge "Optimize the jjb-deploy trigger regex"
Anil Belur [Wed, 13 Mar 2019 22:32:38 +0000 (08:32 +1000)]
Update lf-maven-central macro docs and templates
Update lf-maven-central macro docs and templates
with the missing required params.
The change
6a3a8fd3c9430a90f3b8c0c85e7e20b8a318eb8f
missed updating the docs and sample code.
Change-Id: I09b55bbf51cc3ef7c29d50b42e52982dc40e8f72
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Wed, 13 Mar 2019 01:41:51 +0000 (11:41 +1000)]
Fix formatting in release notes files
The change I04af514bbb237f405eb1d31ec10e3f019c85a43e breaks the rtd
verify job[1] because of the incorrect formating of the prelude section.
The prelude section can not contain a list as all prelude section are
concatenated together when the release notes are built. Merging the
preludes into their respective feature sections ensures the contex of
the comments are preserved as otherwise they will appear at the top of
the documentation apart from any other information.
Ref: https://docs.openstack.org/reno/latest/user/examples.html
[1] https://jenkins.opendaylight.org/releng/job/lf-infra-global-jjb-rtd-verify-any/475/
Change-Id: I3d23679eb4740b5fdc22fc566811d06ac6128820
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Thanh Ha (zxiiro) [Mon, 11 Mar 2019 22:25:21 +0000 (22:25 +0000)]
Merge "Update sigul macro to support sign mode"
Anil Belur [Sat, 9 Mar 2019 23:26:35 +0000 (23:26 +0000)]
Merge "Update lftools to version 0.21.0"
Tim Johnson [Tue, 5 Mar 2019 22:46:52 +0000 (14:46 -0800)]
Update Jenkins Init Scripts
Support ability to specify swap size and to pre-allocate the '/w' volume
for the Hyperledger Project
Change-Id: I04af514bbb237f405eb1d31ec10e3f019c85a43e
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Thanh Ha [Wed, 6 Mar 2019 17:36:29 +0000 (12:36 -0500)]
Update sigul macro to support sign mode
Sign mode is a parameter to allow the user to choose whether or not
to sign artifacts in parallel using gnu-parallel or in serial mode
(bash for loop) methods.
Cleanup obsolete lftools_activate method.
Change-Id: Ib202f93a37e2830e5048c5a766c17d75233c6423
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 7 Mar 2019 18:28:55 +0000 (13:28 -0500)]
Update lftools to version 0.21.0
Change-Id: Ibbcd6b25247dcad926fc67342f9eac47347902e0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Anil Belur [Thu, 7 Mar 2019 18:04:32 +0000 (04:04 +1000)]
Optimize the jjb-deploy trigger regex
Optimize the jjb-deploy trigger regex to trigger the job _only_
when the Gerrit CR comment is intended as a command.
The `jjb-deploy` job presently gets triggered and is waste of infra
resources when the keyword is intended as comment in Gerrit.
Ref: https://git.opendaylight.org/gerrit/#/c/80358/
Issue: RELENG-1847
Change-Id: I3b35adb1284d3d9029ba025bf660b66fbb5d98e0
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Thanh Ha [Thu, 7 Mar 2019 03:50:08 +0000 (22:50 -0500)]
Document required params in lf-maven-stage macro
Change-Id: I1f281b22f7b9454ef58e3fcc5fa49c5d333263a7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha (zxiiro) [Wed, 6 Mar 2019 15:44:09 +0000 (15:44 +0000)]
Merge "Add cmake-sonar job"
Tim Johnson [Tue, 5 Mar 2019 17:13:47 +0000 (09:13 -0800)]
Minor cleanup of openstack-protect script
Change-Id: I45070e0b364136b28e4130aed3972603e8c2e3c1
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Thanh Ha [Tue, 5 Mar 2019 01:47:38 +0000 (20:47 -0500)]
Rework image code to handle no results from YAML
When grep has 0 matches it returns a non-zero exit code. In this case
a 0 match grep is a possibility for YAML files so ignore grep's exit
code in this instance.
Change-Id: Ia7eb55364feeb42bf35681c4ae0798fe25bbfad1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 5 Mar 2019 00:55:02 +0000 (19:55 -0500)]
Search for CFG & YAML files in specific dirs
These file locations are standard locations in our CI setup so be
specific of where to search for them. This prevents the scripts
from picking up data from test files in global-jjb.
Change-Id: Ia486ae8704b77f9303b5a2e54c4ffaf5de41aef8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Mon, 4 Mar 2019 20:34:29 +0000 (15:34 -0500)]
Bump lftools to v0.20.0
Change-Id: I6fa72595c1843a1955f4b492c035ebc7863163b5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Aric Gardner [Tue, 26 Feb 2019 14:36:58 +0000 (09:36 -0500)]
Add niet needed for artifcat release job
Change-Id: I4223d00667b5701377d057e76e82e8657960d262
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Tim Johnson [Fri, 15 Feb 2019 18:21:52 +0000 (10:21 -0800)]
Add Error Handling
Packer Cleanup Script was ignoring all errors
Change-Id: I881abf36420a1976c4f3af552aeeca4a4512c555
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
Thanh Ha (zxiiro) [Wed, 13 Feb 2019 17:52:56 +0000 (17:52 +0000)]
Merge "Update lf-maven-stage macro with missing parts"
Thanh Ha (zxiiro) [Tue, 12 Feb 2019 15:42:39 +0000 (15:42 +0000)]
Merge "Add job to automatically announce lf releases"
Thanh Ha [Thu, 1 Nov 2018 03:39:39 +0000 (23:39 -0400)]
Add job to automatically announce lf releases
This job triggers when a Gerrit tag is pushed and sends an email to
lf-releng@lists.linuxfoundation.org to notifiy the release.
Change-Id: I5255ac6f3afbcadfc11e9640483613bd2e84250a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Bengt Thuree [Thu, 31 Jan 2019 00:14:03 +0000 (11:14 +1100)]
Update lf-maven-stage macro with missing parts
Added the following missing parts to the lf-maven-stage macro.
* lf-provide-maven-settings
* lf-infra-create-netrc
* lf-provide-maven-settings-cleanup
This improves the macro to be a complete function that does not require
preparatory steps to complete it.
New Usage:
- lf-maven-stage:
mvn-global-settings: 'global-settings'
mvn-settings: 'settings'
mvn-staging-id: 'staging-profile-id'
This patch also updates the lf-maven-central macro as necessary to
work along side the lf-maven-stage changes.
Issue: RELENG-1554
Change-Id: Ie4fbcb52229c74c4216df4d07f077cd691ab6aa6
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Thanh Ha [Sat, 9 Feb 2019 22:02:00 +0000 (17:02 -0500)]
Add cmake-sonar job
This job only supports SonarCloud configuration.
Change-Id: I4f2b5100e3316f21c866155199aeed0533d13b8b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 7 Feb 2019 00:32:00 +0000 (19:32 -0500)]
Add support for SonarCloud
If SonarCloud is used the old method is automatically disabled so that
Sonar is not run twice.
Example Usage:
- project:
name: yangtools-sonar
jobs:
- gerrit-maven-sonar
project: 'yangtools'
project-name: 'yangtools'
branch: 'master'
mvn-settings: 'yangtools-settings'
mvn-opts: '-Xmx1024m'
sonarcloud: true
sonarcloud-project-key: KEY
sonarcloud-project-organization: ORGANIZATION
sonarcloud-api-token: TOKEN
Issue: RELENG-1721
Change-Id: Ica1cd29bfc9246f2452370dd6ceb8b7e5b8e5329
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Suresh Channamallu [Wed, 6 Feb 2019 21:27:10 +0000 (16:27 -0500)]
Modify cron entry
Modify cron entry to pick from custom config
Issue-Id: RELENG-1728
Change-Id: Icd4d97a37672fd0dece6960fa6de7d9fa2fe8a1e
Signed-off-by: Suresh Channamallu <schannamallu@linuxfoundation.org>
Eric Ball [Thu, 31 Jan 2019 23:18:21 +0000 (15:18 -0800)]
Verify build node HARDWARE_ID
This script already checks each file's IMAGE_NAME for validity; this
adds essentially the same validation to check the HARDWARD_ID.
Also add the job to the ci-jobs groups, and set submodule-recursive
value for github-jenkins-cfg-verify.
Issue: RELENG-1418
Change-Id: I0266a0fcc276b2960c9c1749a89bc70e8115d152
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Trevor Bramwell [Tue, 29 Jan 2019 18:54:09 +0000 (10:54 -0800)]
Add Release Notes for Packer Build Description
This was missed in the previous commit to add packer images to the
Jenkins build description.
Issue: RELENG-1073
Change-Id: Iced92ada13d0f576a7b560df5bc1242d83ee9689
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Anil Belur [Mon, 28 Jan 2019 08:56:20 +0000 (18:56 +1000)]
Fix disable-job param typo in docs
Change-Id: I28011767f45b0d29743c74cbec15f55bc48f603b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Trevor Bramwell [Fri, 13 Jul 2018 23:08:36 +0000 (16:08 -0700)]
Set Packer Image name as Build Description
With the Build Description Setter plugin installed in Jenkins, the
packer image name can be extracted after a successful build.
This allows users to no longer look through the build logs when trying
to find the image name for builds.
Issue: RELENG-1073
Change-Id: Iffebd2b7e6b282d3e17a7bd6de1452e063f64603
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Anil Belur [Thu, 17 Jan 2019 10:42:54 +0000 (20:42 +1000)]
Extend ${JOB_NAME} to include {java-version} param
To support javadocs jobs to build with multiple versions of
openjdk{8,11}, extend with '{java-version}' var to the ${JOB-NAME}.
Extending the job name with (java-version) var, JJB ensures
that its not passing the multiple java-versions as a list.
The job failure can be seen on the lispflowmapping jobs.
https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/lispflowmapping-maven-javadoc-verify-neon/71/
https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/lispflowmapping-maven-javadoc-publish-neon/19
Change-Id: If2e189f3e76f36d73863d98f1217c0b42ada52f1
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Mon, 14 Jan 2019 12:08:25 +0000 (22:08 +1000)]
Fix coala warning
The warning was introduced with the change
c90444b3
which fails the tox verify jobs.
Change-Id: I4b6241d53820f588b80f54b28bc92b635fda1b4f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 10 Jan 2019 23:36:50 +0000 (09:36 +1000)]
Add release notes for checking openjdk $VERSION
The release notes is for I19d77c509c90bca5fea1af53dacc35772c7ac939.
Change-Id: I81d0b2082376517ec26c978d6baa3fbd4e2e3d48
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 10 Jan 2019 01:03:11 +0000 (11:03 +1000)]
Fix version number extraction for all cases
When the jobs upgrade to a later version of Java passing
"openjdk11" or "openjdk10" the string substitution would only
return the last char which would potentially fail to pick up
the correct version of Java.
This change fixes this issue to handle all cases.
Change-Id: If81100bbdd116ee071c3ecdeeadc0a3016fa2a15
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Eric Ball [Wed, 9 Jan 2019 17:07:16 +0000 (09:07 -0800)]
Check MAVEN_PARAMS for -f flag in metadata fetch
maven-fetch-metadata.sh was not respecting the "-f" (for file path)
flag in MAVEN_PARAMS, causing lf-maven-merge jobs that utilize this
flag to fail.
Issue: RELENG-1630
Change-Id: I23803fd2e4a46022d85dc2befab1438853c7c3ca
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Thanh Ha (zxiiro) [Wed, 9 Jan 2019 16:59:29 +0000 (16:59 +0000)]
Merge "Add documentation regarding clouds.yaml"
Anil Belur [Wed, 9 Jan 2019 02:14:44 +0000 (12:14 +1000)]
Check openjdk $VERSION before setting $JAVA_HOME
The default version of openjdk installed is openjdk-8 which
is set through the Jenkins job.
For CentOS we are installing jdk-11 and jdk-10 under /opt. So
we need to check the version of openjdk for the job to pick up
the right version of JDK.
Issue: RELENG-1454
Change-Id: I19d77c509c90bca5fea1af53dacc35772c7ac939
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Thanh Ha (zxiiro) [Mon, 7 Jan 2019 22:25:00 +0000 (22:25 +0000)]
Merge "Compress and upload Javadoc for publish jobs"
Thanh Ha (zxiiro) [Mon, 7 Jan 2019 16:41:00 +0000 (16:41 +0000)]
Merge "Add puppet-verify job to lf-ci-jobs"
Thanh Ha [Fri, 4 Jan 2019 20:05:08 +0000 (15:05 -0500)]
Add documentation regarding clouds.yaml
Change-Id: I7baf6a95a1552d178ba6fe48ec89448995d0f927
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha (zxiiro) [Wed, 2 Jan 2019 13:30:16 +0000 (13:30 +0000)]
Merge "Pass PYTHONPATH to tox env to fix install issues"
Thanh Ha [Thu, 20 Dec 2018 12:26:55 +0000 (07:26 -0500)]
Ensure that no lingering .netrc is overriding cfg
If a .netrc already exists with permissions to the same server
as logs, credentials in .netrc are read in order so the log
credentials will not be used. Ensure that no such file pre-exists
before we try to ship logs.
Change-Id: I0449702fd27837208e25a26e34a62f0b8a551c67
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Eric Ball [Sat, 15 Dec 2018 01:20:49 +0000 (17:20 -0800)]
Pass PYTHONPATH to tox env to fix install issues
We have seen install issues that only seem to happen on build
machines. The reason these problems do not appear on local builds is
still not clear, but passing in the PYTHONPATH (set to the working
directory) is an innocuous change that fixes the problem.
Change-Id: I70217404b5a1f993d233714e2e1cac4ae9e7fd2d
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Thanh Ha [Fri, 14 Dec 2018 02:00:33 +0000 (10:00 +0800)]
Revert lftools back to v0.18.0
Binary corruption issues in lftools v0.19.x stream so revert back to
v0.18.0 for now.
Change-Id: I9f9ceb94a4d5efad4307517bff72b898a10ae728
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 14 Dec 2018 01:41:47 +0000 (09:41 +0800)]
Pin dogpile.cache to ~=0.6.8
dogpile.cache released a new version 0.7.x yesterday which started
breaking openstackclient. No upstream fix for this yet so pin this
library until we can upgrade.
Change-Id: I308d170fe1498bc4e03b3d6b769cca3ca822f5ac
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Anil Belur [Tue, 11 Dec 2018 11:47:47 +0000 (21:47 +1000)]
Compress and upload Javadoc for publish jobs
Javadoc publish job always successfully publishes to the "javadoc"
repo, therefore dont maintain another copy of this on the logs
server. Also Javadocs contain ~15K small files which potentially
requires additional CPU cycles for pruning on the logs server.
Issue: RELENG-1215
Change-Id: I1b107a1c65db4b70096d5735c741fb32f09daedd
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Jessica Wagantall [Wed, 12 Dec 2018 00:34:10 +0000 (16:34 -0800)]
Add acumos hardware flavor
Add acumos-highcpu-4-avx hardware flavor to the
map list.
Change-Id: I5b320b0110d27bbb9ddf2f78244950609105046a
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Eric Ball [Wed, 5 Dec 2018 16:01:38 +0000 (08:01 -0800)]
Add puppet-verify job to lf-ci-jobs
This job performs linting of Puppet modules.
Issue: RELENG-988
Change-Id: I8ab6e828e378eb9186187edb80487e0332ac144f
Signed-off-by: Eric Ball <eball@linuxfoundation.org>