X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fpackaging%2Fbuild-deb.sh;h=1e43e5421050dddb3ddabe35a020868d577d5486;hb=9477a94eed604f9989cd61659491e5339708a088;hp=4ccffa201fdde4fac94c75eb21f59a087f34d803;hpb=825522244d6e1ca51d6c887b30ad5cf1acb4593a;p=releng%2Fbuilder.git diff --git a/jjb/packaging/build-deb.sh b/jjb/packaging/build-deb.sh index 4ccffa201..1e43e5421 100644 --- a/jjb/packaging/build-deb.sh +++ b/jjb/packaging/build-deb.sh @@ -21,9 +21,19 @@ $PYTHON -m pip install -r "$WORKSPACE/packaging/packages/requirements.txt" direct \ --download_url "$DOWNLOAD_URL" -# Copy the debs to be upload -UPLOAD_FILES_PATH="$WORKSPACE/upload_files" -mkdir -p "$UPLOAD_FILES_PATH" -# Note: no source packages are available, since the debs are not built -# from the actual source -mv "$WORKSPACE/packaging/packages/deb/opendaylight/"*.deb "$_" +# Publish debs to Nexus if in production Jenkins, else host on sandbox Jenkins +if [ "$SILO" == "sandbox" ]; then + # TODO: Host debs on Jenkins temporarily + echo "Not uploading debs to Nexus because running in sandbox" +elif [ "$SILO" == "releng" ]; then + # Copy the debs to be upload + # Move debs to dir of files that will be uploaded to Nexus + UPLOAD_FILES_PATH="$WORKSPACE/upload_files" + mkdir -p "$UPLOAD_FILES_PATH" + # Note: no source packages are available, since the debs are not built + # from the actual source + ln -s "$WORKSPACE/packaging/packages/deb/opendaylight/"*.deb "$_" +else + echo "Unknown Jenkins silo: $SILO" + exit 1 +fi