@@ -29,15 +29,15 @@ echo "Branch: $BRANCH"
2929
3030if [ " $BRANCH " = $stableBranch ]; then
3131 echo " New spotbugs result for $stableBranch at: https://www.kaminsky.me/nc-dev/$repository -findbugs/$stableBranch .html"
32- curl -u " ${LOG_USERNAME} :${LOG_PASSWORD} " -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/$repository -findbugs/$stableBranch .html --upload-file library /build/reports/spotbugs/spotbugs.html
33- curl 2> /dev/null -u " ${LOG_USERNAME} :${LOG_PASSWORD} " -X PUT " https://nextcloud.kaminsky.me/remote.php/webdav/$repository -findbugs/$stableBranch .xml" --upload-file library /build/reports/spotbugs/debug.xml
32+ curl -u " ${LOG_USERNAME} :${LOG_PASSWORD} " -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/$repository -findbugs/$stableBranch .html --upload-file lib /build/reports/spotbugs/spotbugs.html
33+ curl 2> /dev/null -u " ${LOG_USERNAME} :${LOG_PASSWORD} " -X PUT " https://nextcloud.kaminsky.me/remote.php/webdav/$repository -findbugs/$stableBranch .xml" --upload-file lib /build/reports/spotbugs/debug.xml
3434else
3535 if [ -e " ${BUILD_NUMBER} " ]; then
3636 6=$stableBranch " -" $( date +%F)
3737 fi
3838
3939 echo " New spotbugs results at https://www.kaminsky.me/nc-dev/$repository -findbugs/${BUILD_NUMBER} .html"
40- curl 2> /dev/null -u " ${LOG_USERNAME} :${LOG_PASSWORD} " -X PUT " https://nextcloud.kaminsky.me/remote.php/webdav/$repository -findbugs/${BUILD_NUMBER} .html" --upload-file library /build/reports/spotbugs/spotbugs.html
40+ curl 2> /dev/null -u " ${LOG_USERNAME} :${LOG_PASSWORD} " -X PUT " https://nextcloud.kaminsky.me/remote.php/webdav/$repository -findbugs/${BUILD_NUMBER} .html" --upload-file lib /build/reports/spotbugs/spotbugs.html
4141
4242 # delete all old comments, starting with Codacy
4343 oldComments=$( curl_gh -X GET " https://api.github.com/repos/nextcloud/$repository /issues/${PR_NUMBER} /comments" | jq ' .[] | select((.user.login | contains("github-actions")) and (.body | test("<h1>Codacy.*"))) | .id' )
4747 done
4848
4949 # spotbugs file must exist
50- if [ ! -s library /build/reports/spotbugs/spotbugs.html ] ; then
50+ if [ ! -s lib /build/reports/spotbugs/spotbugs.html ] ; then
5151 echo " spotbugs.html file is missing!"
5252 exit 1
5353 fi
5454
5555 # add comment with results
56- spotbugsResult=" <h1>SpotBugs</h1>$( scripts/analysis/spotbugsComparison.py " /tmp/$stableBranch .xml" library /build/reports/spotbugs/debug.xml --link-new " https://www.kaminsky.me/nc-dev/$repository -findbugs/${BUILD_NUMBER} .html" --link-base " https://www.kaminsky.me/nc-dev/$repository -findbugs/$stableBranch .html" ) "
56+ spotbugsResult=" <h1>SpotBugs</h1>$( scripts/analysis/spotbugsComparison.py " /tmp/$stableBranch .xml" lib /build/reports/spotbugs/debug.xml --link-new " https://www.kaminsky.me/nc-dev/$repository -findbugs/${BUILD_NUMBER} .html" --link-base " https://www.kaminsky.me/nc-dev/$repository -findbugs/$stableBranch .html" ) "
5757
5858 if ( [ $spotbugsValue -eq 1 ] ) ; then
5959 spotbugsMessage=" <h1>SpotBugs increased!</h1>"
6060 fi
6161
6262 # check for NotNull
63- if [[ $( grep org.jetbrains.annotations library /src/main/* -irl | wc -l) -gt 0 ]] ; then
63+ if [[ $( grep org.jetbrains.annotations lib /src/main/* -irl | wc -l) -gt 0 ]] ; then
6464 notNull=" org.jetbrains.annotations.* is used. Please use androidx.annotation.* instead.<br><br>"
6565 fi
6666
0 commit comments