I am using the following pipeline for self-hosted Windows Runner. The bitbucket pipeline always fails, though the build is succeeded and all the tests are passed.
I get this message in the build teardown - Completing step with result Result{status=FAILED, error=None}, in the runner console.
pipelines:
branches:
pull-requests:
- step:
runs-on:
- self.hosted
- windows
name: Build and Test
caches:
- dotnetcore
script:
- $SOLUTION_NAME="SmartWorkstation"
- $CONFIGURATION="Release"
- $REPORTS_PATH="./test-reports/build_$BITBUCKET_BUILD_NUMBER"
- dotnet restore ./$SOLUTION_NAME/$SOLUTION_NAME.sln
- dotnet build --no-restore --configuration $CONFIGURATION ./$SOLUTION_NAME/$SOLUTION_NAME.sln
- dotnet test --no-build --configuration $CONFIGURATION ./$SOLUTION_NAME/$SOLUTION_NAME.sln --logger:"junit;LogFilePath=$REPORTS_PATH/junit.xml"How can I fix this?