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-'
# Disable checks for doublequote to prevent glob / splitting
# shellcheck disable=SC2086
- $MVN org.apache.maven.plugins:maven-deploy-plugin:deploy-file \
+ $MVN -B org.apache.maven.plugins:maven-deploy-plugin:deploy-file \
-Dfile=$push_file -DrepositoryId=$repoId \
-Durl=$url -DgroupId=$GROUP_ID \
-Dversion=$version -DartifactId=$artifactId \
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 ()