remove nexus function from entrypoint 99/110299/2
authorjhh <jorge.hernandez-herrero@att.com>
Thu, 16 Jul 2020 21:28:54 +0000 (16:28 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Fri, 17 Jul 2020 18:09:57 +0000 (13:09 -0500)
Issue-ID: POLICY-2673
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib1bce9a813435718e83a6671d3790c610c14b709
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
controlloop/packages/docker-controlloop/src/main/resources/pdpd-cl-entrypoint.sh
pom.xml

index 9b92187..6ec9e1d 100644 (file)
 # limitations under the License.
 # ########################################################################
 
-function nexus {
-    if [[ ${DEBUG} == y ]]; then
-        echo "-- ${FUNCNAME[0]} --"
-        set -x
-    fi
-
-    if [[ -z ${RELEASE_REPOSITORY_URL} ]]; then
-        return 0
-    fi
-
-    # amsterdam legacy
-
-    echo
-    echo "checking if there are amsterdam policies already deployed .."
-    echo
-
-    local amsterdamVersion=$(curl --silent --connect-timeout 20 -X GET \
-        "http://nexus:8081/nexus/service/local/artifact/maven/resolve?r=releases&g=org.onap.policy-engine.drools.amsterdam&a=policy-amsterdam-rules&v=RELEASE" \
-        | grep -Po "(?<=<version>).*(?=</version>)")
-
-    if [[ -z ${amsterdamVersion} ]]; then
-        echo "no amsterdam policies have been found .."
-        exit 0
-    fi
-
-    echo
-    echo "The latest deployed amsterdam artifact in nexus has version ${amsterdamVersion}"
-    echo
-
-    sed -i.INSTALL \
-        -e "s/^rules.artifactId=.*/rules.artifactId=policy-amsterdam-rules/g" \
-        -e "s/^rules.groupId=.*/rules.groupId=org.onap.policy-engine.drools.amsterdam/g" \
-        -e "s/^rules.version=.*/rules.version=${amsterdamVersion}/g" "${POLICY_HOME}"/config/amsterdam-controller.properties
-
-    echo
-    echo "amsterdam controller will be started brained with maven coordinates:"
-    echo
-
-    grep "^rules" "${POLICY_HOME}"/config/amsterdam-controller.properties
-    echo
-    echo
-}
-
 if [[ ${DEBUG} == y ]]; then
     echo "-- $0 $* --"
     set -x
 fi
 
-operation="${1}"
-case "${operation}" in
-    nexus)      nexus
-                ;;
-    *)          ${POLICY_HOME}/bin/pdpd-entrypoint.sh "$@"
-                ;;
-esac
+# placeholder for customizations
+
+${POLICY_HOME}/bin/pdpd-entrypoint.sh "$@"
diff --git a/pom.xml b/pom.xml
index 64b823d..74bb6da 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -45,9 +45,9 @@
         <staging.path>content/repositories/staging/</staging.path>
 
         <!-- Project common dependency versions -->
-        <version.policy.common>1.7.0</version.policy.common>
-        <policy.models.version>2.3.0</policy.models.version>
-        <version.policy.drools-pdp>1.7.0</version.policy.drools-pdp>
+        <version.policy.common>1.7.1-SNAPSHOT</version.policy.common>
+        <policy.models.version>2.3.1-SNAPSHOT</policy.models.version>
+        <version.policy.drools-pdp>1.7.1-SNAPSHOT</version.policy.drools-pdp>
     </properties>
 
     <build>