Enable jobs for throttle branches
[ci-management.git] / jjb / vpp / include-raw-vpp-maven-push.sh
index 4d37094..0cdf9bf 100644 (file)
@@ -10,18 +10,6 @@ MVN="${HOME}/tools/hudson.tasks.Maven_MavenInstallation/${MAVEN_SELECTOR}/bin/mv
 GROUP_ID="io.fd.${PROJECT}"
 BASEURL="${NEXUSPROXY}/content/repositories/fd.io."
 BASEREPOID='fdio-'
-declare -A REPO_TARGET
-REPOID_TARGET=(
-    [ubuntu1404]="${BASEREPOID}dev"
-    [ubuntu1604]="${BASEREPOID}ubuntu.xenial.main"
-    [centos7]="${BASEREPOID}yum"
-)
-declare -A REPOURL_TARGET
-REPOURL_TARGET=(
-    [ubuntu1404]="${BASEURL}dev"
-    [ubuntu1604]="${BASEURL}ubuntu.xenial.main"
-    [centos7]="${BASEURL}yum"
-)
 
 function push_file ()
 {
@@ -69,8 +57,8 @@ function push_jar ()
 function push_deb ()
 {
     debfile=$1
-    repoId=${REPOID_TARGET[${OS}]}
-    url="${REPOURL_TARGET[${OS}]}"
+    repoId=${REPO_NAME}
+    url="${BASEURL}${REPO_NAME}"
 
     basefile=$(basename -s .deb "$debfile")
     artifactId=$(echo "$basefile" | cut -f 1 -d '_')
@@ -82,8 +70,8 @@ function push_deb ()
 function push_rpm ()
 {
     rpmfile=$1
-    repoId=${REPOID_TARGET[${OS}]}
-    url="${REPOURL_TARGET[${OS}]}"
+    repoId=${REPO_NAME}
+    url="${BASEURL}${REPO_NAME}"
 
     if grep -qE '\.s(rc\.)?rpm' <<<"$rpmfile"
     then