diff --git a/deploy.sh b/deploy.sh index 045db1203..09eb4007f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -51,7 +51,7 @@ function deploy_teavm { GRADLE+=" -Pteavm.publish.password=$TEAVM_DEPLOY_PASSWORD" $GRADLE build || { echo 'Build failed' ; return 1; } - $GRADLE publishAllPublicationsToTeavmRepository || { echo 'Deploy failed' ; return 1; } + $GRADLE --max-workers 4 publishAllPublicationsToTeavmRepository || { echo 'Deploy failed' ; return 1; } curl -T tools/idea/build/distributions/idea-$TEAVM_DEPLOY_VERSION_FULL.zip \ sftp://$TEAVM_DEPLOY_SERVER/idea/teavm-idea-$TEAVM_DEPLOY_VERSION_FULL.zip \ @@ -99,5 +99,5 @@ if [[ "$EXIT_CODE" == '0' ]] ; then fi popd -#rm -rf build-dir -#exit $EXIT_CODE +rm -rf build-dir +exit $EXIT_CODE