Generalize deploy maven-file builder 53/5753/6
authorAnil Belur <abelur@linuxfoundation.org>
Sun, 6 Aug 2017 23:59:48 +0000 (09:59 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 9 Aug 2017 01:50:05 +0000 (11:50 +1000)
commit40a8db919896289a6f4516378128a09adbce7a19
tree5fe607ba616aa3fa6727d83bf5f6a6b1bbc330f2
parent409ce6156aa5e7b6c24eaac6dc414c0f013983b1
Generalize deploy maven-file builder

The builder hard codes the URL path which makes the builder
limit deploy capabilites only to external nexus repos and not
local file systems.

The change fixes the above issue by allowing the calling job
to define the repository path.
ex:

    "${NEXUS_URL}/content/repositories/$REPO_ID"
    "file://$WORKSPACE/m2repo"

Renamed variables:
'files-dir' to 'upload-files-dir'
'nexus-url-path' to 'maven-repo-url'
'$NEXUS_URL_PATH' to '$MAVEN_REPO_URL'

Change-Id: If0beb7f6dff76c18988c9a75b52c80358f16dff6
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-macros.yaml
shell/deploy-maven-file.sh