Migrate Maven Merge job to global-jjb 68/6968/17
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sun, 15 Oct 2017 20:44:08 +0000 (16:44 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 29 Nov 2017 15:08:57 +0000 (10:08 -0500)
commit92c2494543e0e66bfe8cd636efdf8cc618a03b62
tree8fc705b68e6792c5acac68f64e91fd9e63894f39
parentbd303903ee1d12dd5618106b1dad1f7b0a41983a
Migrate Maven Merge job to global-jjb

Provide a Maven Merge job that is generically reusable by other
projects. This new job uses cURL to upload artifacts to Nexus and uses
`wget -r` to mirror existing maven-metadata.xml files in order to update
them when pushing SNAPSHOTs.

This job uses the following strategy to deploy jobs to Nexus:

1. `wget -r` to fetch maven-metadata.xml from Nexus
2. `mvn deploy -DaltDeploymentRepository` to prepare files for upload
3. Removes untouched maven-metadata.xml files before upload
4. Use lftools (cURL) upload script to push artifacts to Nexus

Issue: RELENG-61
Change-Id: I7663731d0eb750e4ccc1b07bcf5ad39c6135900c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/expected-xml/gerrit-maven-maven-merge-master [new file with mode: 0644]
.jjb-test/expected-xml/github-maven-maven-merge-master [new file with mode: 0644]
.jjb-test/lf-maven-jobs.yaml
docs/jjb/lf-maven-jobs.rst
jjb/lf-maven-jobs.yaml
shell/maven-deploy.sh [new file with mode: 0644]
shell/maven-fetch-metadata.sh [new file with mode: 0644]