X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cdt%2Fsrc%2Fmain%2Fscripts%2FinstallZips.sh;h=bb27216f32e2c6c7a14cdf446901173d747d4e87;hb=b581c186ff9d7fef8194c0d69f827ca153dfcd45;hp=a1b6cc4f552fc52558788d5b95e13871ad0ad50e;hpb=27525d8cce704f03b28eb8833ac1533126ece7da;p=appc%2Fdeployment.git diff --git a/cdt/src/main/scripts/installZips.sh b/cdt/src/main/scripts/installZips.sh index a1b6cc4..bb27216 100644 --- a/cdt/src/main/scripts/installZips.sh +++ b/cdt/src/main/scripts/installZips.sh @@ -51,8 +51,17 @@ cd /tmp echo "Downloading cdt code from nexus" -mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.onap.appc.cdt:config-design-tool:${APPC_VERSION}:zip -DoutputDirectory=/tmp -unzip -d ${targetDir}/config-design-tool /tmp/config-design-tool*.zip + +CDT_TEMP_DIR=/tmp/appc-config-design-tool-${APPC_VERSION} +if [ ! -d ${CDT_TEMP_DIR} ] +then + mkdir -p ${CDT_TEMP_DIR} +fi + +rm ${CDT_TEMP_DIR}/config-design-tool*.zip + +mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.onap.appc.cdt:config-design-tool:${APPC_VERSION}:zip -DoutputDirectory=${CDT_TEMP_DIR} +unzip -d ${targetDir}/config-design-tool ${CDT_TEMP_DIR}/config-design-tool*.zip find ${targetDir} -name '*.sh' -exec chmod +x '{}' \;