From: Andrew Grimberg Date: Thu, 10 Dec 2015 14:30:36 +0000 (-0800) Subject: Fix up push script repoId selector and classifications X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F36%2F1;p=ci-management.git Fix up push script repoId selector and classifications The settings files use a - separator for the repoIDs so we need to make sure that we're concatenating against a - instead of . Additionally we're tightening up the version classification of the pushed objects. This may not be 100% still but it should be better than what we were attempting previously. Change-Id: I726f9d87c3441357701ad79b7357a337c6636a42 Signed-off-by: Andrew Grimberg --- diff --git a/jjb/vpp/include-raw-vpp-maven-push.sh b/jjb/vpp/include-raw-vpp-maven-push.sh index a625ed40c..d09cf827e 100644 --- a/jjb/vpp/include-raw-vpp-maven-push.sh +++ b/jjb/vpp/include-raw-vpp-maven-push.sh @@ -9,7 +9,7 @@ fi MVN="${HOME}/tools/hudson.tasks.Maven_MavenInstallation/${MAVEN_SELECTOR}/bin/mvn" GROUP_ID="info.projectrotterdam.${PROJECT}" BASEURL="${NEXUSPROXY}/content/repositories/rotterdam." -BASEREPOID='rotterdam.' +BASEREPOID='rotterdam-' # find the files JARS=$(find . -type f -iname '*.jar') @@ -49,7 +49,7 @@ function push_jar () artifactId=$(echo "$basefile" | cut -f 1 -d '-') version=$(echo "$basefile" | cut -f 2 -d '-') - push_file "$jarfile" "$repoId" "$url" "$version" "$artifactId" jar + push_file "$jarfile" "$repoId" "$url" "${version}-SNAPSHOT" "$artifactId" jar } function push_deb () @@ -58,11 +58,11 @@ function push_deb () repoId="${BASEREPOID}release" url="${BASEURL}release" - basefile=$(basename -s _amd64.deb "$debfile") + basefile=$(basename -s .deb "$debfile") artifactId=$(echo "$basefile" | cut -f 1 -d '_') - version=$(echo "$basefile" | cut -f 2 -d '_') + version=$(echo "$basefile" | cut -f 2- -d '_') - push_file "$debfile" "$repoId" "$url" "$version" "$artifactId" deb _amd64 + push_file "$debfile" "$repoId" "$url" "${version}_amd64" "$artifactId" deb } for i in $JARS