Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Fix for plugin upload script; re-ordering to have most likely to fail…
Browse files Browse the repository at this point in the history
… first
  • Loading branch information
binwiederhier committed Mar 14, 2015
1 parent ec99532 commit a11899c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
12 changes: 6 additions & 6 deletions gradle/upload/upload-application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ file_exe=$(ls $REPODIR/build/upload/syncany*.exe)
file_reports=$(ls $REPODIR/build/upload/reports.zip)
file_docs=$(ls $REPODIR/build/upload/docs.zip)

echo "Uploading DEB: $(basename $file_deb) ..."
upload_app "$file_deb" "deb" "$snapshot" # Most likely to fail first

echo "Uploading EXE: $(basename $file_exe) ..."
upload_app "$file_exe" "exe" "$snapshot"

echo "Uploading TAR.GZ: $(basename $file_targz) ..."
upload_app "$file_targz" "tar.gz" "$snapshot"

echo "Uploading ZIP: $(basename $file_zip) ..."
upload_app "$file_zip" "zip" "$snapshot"

echo "Uploading DEB: $(basename $file_deb) ..."
upload_app "$file_deb" "deb" "$snapshot"

echo "Uploading EXE: $(basename $file_exe) ..."
upload_app "$file_exe" "exe" "$snapshot"

echo "Uploading REPORTS: $(basename $file_reports) ..."
upload_app "$file_reports" "reports" "$snapshot"

Expand Down
19 changes: 10 additions & 9 deletions gradle/upload/upload-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,23 @@ echo ""
echo "Uploading plugin $plugin_id"
echo "------------------------------"

files_jar=$(ls $REPODIR/build/upload/*.jar 2> /dev/null)
files_deb=$(ls $REPODIR/build/upload/*.deb 2> /dev/null)
files_exe=$(ls $REPODIR/build/upload/*.exe 2> /dev/null)
files_appzip=$(ls $REPODIR/build/upload/*.app.zip 2> /dev/null)
files_jar=$(ls $REPODIR/build/upload/*.jar 2> /dev/null || true)
files_deb=$(ls $REPODIR/build/upload/*.deb 2> /dev/null || true)

for file in $files_deb; do
echo "Uploading DEB: $(basename $file) ..."
upload_plugin "$file" "deb" "$plugin_id" "$snapshot" # Most likely to fail first
done

for file in $files_jar; do
echo "Uploading JAR: $(basename $file) ..."
upload_plugin "$file" "jar" "$plugin_id" "$snapshot"
done

for file in $files_deb; do
echo "Uploading DEB: $(basename $file) ..."
upload_plugin "$file" "deb" "$plugin_id" "$snapshot"
done

if [ "$plugin_id" == "gui" ]; then
files_exe=$(ls $REPODIR/build/upload/*.exe 2> /dev/null || true)
files_appzip=$(ls $REPODIR/build/upload/*.app.zip 2> /dev/null || true)

for file in $files_exe; do
echo "Uploading EXE: $(basename $file) ..."
upload_plugin "$file" "exe" "$plugin_id" "$snapshot"
Expand Down

0 comments on commit a11899c

Please sign in to comment.