fi
MVN="${HOME}/tools/hudson.tasks.Maven_MavenInstallation/${MAVEN_SELECTOR}/bin/mvn"
-GROUP_ID="info.projectrotterdam.${PROJECT}"
-BASEURL="${NEXUSPROXY}/content/repositories/rotterdam."
-BASEREPOID='rotterdam-'
+GROUP_ID="io.fd.${PROJECT}"
+BASEURL="${NEXUSPROXY}/content/repositories/fd.io."
+BASEREPOID='fdio-'
# find the files
JARS=$(find . -type f -iname '*.jar')
-Dversion=$version -DartifactId=$artifactId \
-Dtype=$file_type $d_classifier\
-gs $GLOBAL_SETTINGS_FILE -s $SETTINGS_FILE
+
+ # make sure the script bombs if we fail an upload
+ if [ "$?" != '0' ]; then
+ echo "ERROR: There was an error with the upload"
+ exit 1
+ fi
}
function push_jar ()
function push_deb ()
{
debfile=$1
- repoId="${BASEREPOID}release"
- url="${BASEURL}release"
+ repoId="${BASEREPOID}dev"
+ url="${BASEURL}dev"
basefile=$(basename -s .deb "$debfile")
artifactId=$(echo "$basefile" | cut -f 1 -d '_')