From 6c11793dc8682bc3e1e47309e2ba39e200599fec Mon Sep 17 00:00:00 2001 From: Lusheng Ji Date: Tue, 3 Apr 2018 15:07:58 -0400 Subject: [PATCH] Fix raw artifact push path Previously all raw artifacts (sh, yaml, etc) are uploaded to raw repo under the same location. This change instead pushes to a path reflecting an artifact's module. Issue-ID: DCAEGEN2-206 Change-Id: I28c76583b5a6793b384b4955962d23e564ed4d49 Signed-off-by: Lusheng Ji --- heat/pom.xml | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++ mvn-phase-script.sh | 8 +-- pom.xml | 5 +- 3 files changed, 165 insertions(+), 6 deletions(-) create mode 100644 heat/pom.xml diff --git a/heat/pom.xml b/heat/pom.xml new file mode 100644 index 0000000..e21db72 --- /dev/null +++ b/heat/pom.xml @@ -0,0 +1,158 @@ + + + + 4.0.0 + + org.onap.dcaegen2.deployments + deployments + 1.2.0-SNAPSHOT + + org.onap.dcaegen2.deployments + heat + dcaegen2-deployments-heat + 1.0.0-SNAPSHOT + http://maven.apache.org + + UTF-8 + true + + + ${project.artifactId}-${project.version} + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + clean phase script + clean + + exec + + + + ${project.artifactId} + clean + + + + + generate-sources script + generate-sources + + exec + + + + ${project.artifactId} + generate-sources + + + + + compile script + compile + + exec + + + + ${project.artifactId} + compile + + + + + package script + package + + exec + + + + ${project.artifactId} + package + + + + + test script + test + + exec + + + + ${project.artifactId} + test + + + + + install script + install + + exec + + + + ${project.artifactId} + install + + + + + deploy script + deploy + + exec + + + + ${project.artifactId} + deploy + + + + + + + + diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index b9f99eb..9897d5e 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -86,11 +86,11 @@ deploy) k8s-bootstrap-container|tca-cdap-container|cm-container|redis-cluster-container) build_and_push_docker ;; - scripts|cloud_init) + scripts|cloud_init|heat) # upload all sh file under the root of module - upload_files_of_extension_recursively sh - upload_files_of_extension_recursively py - upload_files_of_extension_recursively yaml + upload_files_of_extension_recursively sh $MVN_PROJECT_MODULEID + upload_files_of_extension_recursively py $MVN_PROJECT_MODULEID + upload_files_of_extension_recursively yaml $MVN_PROJECT_MODULEID ;; *) echo "====> unknown mvn project module" diff --git a/pom.xml b/pom.xml index 2a5f941..ce585ba 100644 --- a/pom.xml +++ b/pom.xml @@ -36,13 +36,14 @@ limitations under the License. pom - bootstrap + heat scripts cloud_init + bootstrap redis-cluster-container - tca-cdap-container cm-container k8s-bootstrap-container + tca-cdap-container -- 2.16.6