X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fscripts%2Fmaven_push_functions.sh;h=564c6ef373909f17c835c39a8f5e3f9f9ba43be0;hb=4c0006dc78409663a80eb057542fde49615a3353;hp=22a22cbf8cf28d310a8379e36a1dcaf31f3815c0;hpb=354d0aa7a9c1086b41d4579b9d655368a606abae;p=ci-management.git diff --git a/jjb/scripts/maven_push_functions.sh b/jjb/scripts/maven_push_functions.sh index 22a22cbf8..564c6ef37 100644 --- a/jjb/scripts/maven_push_functions.sh +++ b/jjb/scripts/maven_push_functions.sh @@ -5,7 +5,7 @@ echo "* STARTING PUSH OF PACKAGES TO REPOS" echo "* NOTHING THAT HAPPENS BELOW THIS POINT IS RELATED TO BUILD FAILURE" echo "*******************************************************************" -MVN="/opt/apache/maven/bin/mvn" +[ "$MVN" ] || MVN="/opt/apache/maven/bin/mvn" GROUP_ID="io.fd.${PROJECT}" BASEURL="${NEXUSPROXY}/content/repositories/fd.io." BASEREPOID='fdio-' @@ -70,8 +70,10 @@ function push_deb () basefile=$(basename -s .deb "$debfile") artifactId=$(echo "$basefile" | cut -f 1 -d '_') version=$(echo "$basefile" | cut -f 2- -d '_') + file_type=deb + classifier=deb - push_file "$debfile" "$repoId" "$url" "$version" "$artifactId" deb deb + push_file "$debfile" "$repoId" "$url" "$version" "$artifactId" "$file_type" "$classifier" } function push_rpm ()