Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/recyclarr/blame/commit/ecc579730537af2f2952a01f5942cadd47d72206/ci/RunSonarScan.ps1
You should set ROOT_URL correctly, otherwise the web may not work correctly.
[ CmdletBinding ( ) ]
param (
[ Parameter ( Mandatory = $true ) ]
[ string ] $SonarToken ,
[ switch ] $Details
)
# We use the current released version because we want to treat all code written since that version
# as 'new' for analysis purposes.
$version = ( git describe - -tags - -abbrev = 0 ) -replace '^v'
$beginArgs = @ (
" -o:recyclarr "
" -k:recyclarr_recyclarr "
" -n:Recyclarr "
" -v: $version "
" -d:sonar.token= $SonarToken "
" -d:sonar.host.url=https://sonarcloud.io "
" -d:sonar.cs.opencover.reportsPaths=**/TestResults/*/coverage.opencover.xml "
)
if ( $Details ) {
$beginArgs + = " -d:sonar.verbose=true "
}
" Args: $beginArgs "
dotnet sonarscanner begin @beginArgs
if ( $LASTEXITCODE -ne 0 ) { throw " Failed: sonarscanner begin " }
try {
# Run a full build command because if we just do the tests, it will not build everything.
# Building everything is important to ensure we analyze all code in the solution.
dotnet build
if ( $LASTEXITCODE -ne 0 ) { throw " Failed: dotnet build " }
dotnet test - -no -build - -collect: " XPLat Code Coverage;Format=opencover "
if ( $LASTEXITCODE -ne 0 ) { throw " Failed: dotnet test " }
}
finally {
dotnet sonarscanner end " -d:sonar.token= $SonarToken "
if ( $LASTEXITCODE -ne 0 ) { throw " Failed: sonarscanner end " }
}