Skip to content

Commit 237a4de

Browse files
fix library path
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent f3e6bba commit 237a4de

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎scripts/analysis/analysis-wrapper.sh‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ echo "Branch: $BRANCH"
2929

3030
if [ "$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
3434
else
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')
@@ -47,20 +47,20 @@ else
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

‎scripts/analysis/spotbugs-up.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
system './gradlew spotbugsDebug'
2424

2525
# find number of warnings
26-
current_warning_count = `./scripts/analysis/spotbugsSummary.py --file library/build/reports/spotbugs/debug.xml --total`.to_i
26+
current_warning_count = `./scripts/analysis/spotbugsSummary.py --file lib/build/reports/spotbugs/debug.xml --total`.to_i
2727
puts "found warnings: " + current_warning_count.to_s
2828

2929
# get warning counts from target branch

0 commit comments

Comments
 (0)