X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Finclude-raw-autorelease-maven-deploy.sh;h=40f3b8230460cb8ee6b0463c71fc65c08fd65fe1;hb=2ef7e35d07eeb670d167429dcbc95f7bc3f0798f;hp=4264fc30649f0c75dbfb400df279b4b59191a874;hpb=12ab03111ce1e978bb655e237d198b6ed3c7bb69;p=releng%2Fbuilder.git diff --git a/jjb/autorelease/include-raw-autorelease-maven-deploy.sh b/jjb/autorelease/include-raw-autorelease-maven-deploy.sh index 4264fc306..40f3b8230 100644 --- a/jjb/autorelease/include-raw-autorelease-maven-deploy.sh +++ b/jjb/autorelease/include-raw-autorelease-maven-deploy.sh @@ -10,7 +10,7 @@ ############################################################################## # Assuming that mvn deploy created the hide/from/pom/files/stage directory. -cd hide/from/pom/files +cd hide/from/pom/files || exit 404 mkdir -p m2repo/org/opendaylight/ # ODLNEXUSPROXY is used to define the location of the Nexus server used by the CI system. @@ -29,9 +29,9 @@ rsync -avz --remove-source-files \ "stage/org/opendaylight" m2repo/org/ "$MVN" -V -B org.sonatype.plugins:nexus-staging-maven-plugin:1.6.2:deploy-staged-repository \ - -DrepositoryDirectory="`pwd`/m2repo" \ - -DnexusUrl=$NEXUS_STAGING_URL \ + -DrepositoryDirectory="$(pwd)/m2repo" \ + -DnexusUrl="$NEXUS_STAGING_URL" \ -DstagingProfileId="$NEXUS_STAGING_PROFILE" \ -DserverId="$NEXUS_STAGING_SERVER_ID" \ - -s $SETTINGS_FILE \ - -gs $GLOBAL_SETTINGS_FILE | tee $WORKSPACE/deploy-staged-repository.log + -s "$SETTINGS_FILE" \ + -gs "$GLOBAL_SETTINGS_FILE" | tee "$WORKSPACE/deploy-staged-repository.log"