Hi,
I am running a self host runner on Windows and I am having this issue:
[2022-08-03 17:08:54,077] Updating runner state to "ONLINE".
[2022-08-03 17:09:02,746] Setting runner state to executing step.
[2022-08-03 17:09:02,756] Getting step StepId{IHaveDeletedItForSecurityPurposes}
[2022-08-03 17:09:02,766] Getting oauth token for step.
[2022-08-03 17:09:02,769] Getting environment variables for step.
[2022-08-03 17:09:03,151] Getting all artifacts for step.
[2022-08-03 17:09:03,353] Setting up directories.
[2022-08-03 17:09:03,355] Starting log uploader.
[2022-08-03 17:09:03,358] Setting up step timeout: PT2H
[2022-08-03 17:09:03,365] Starting websocket listening to STEP_COMPLETED events.
[2022-08-03 17:09:03,366] Checking for step completion every PT30S seconds.
[2022-08-03 17:09:03,561] Updating step progress to CLONING.
[2022-08-03 17:09:03,875] Generating clone script.
[2022-08-03 17:09:03,891] Adding log file: C:\Users\LUC\source\repos\atlassian-bitbucket-pipelines-runner\bin\..\temp\b64bab56-8f78-5112-aacb-60e5b7e2be6a\1659541352857\tmp\clone14940335475468784215.log
[2022-08-03 17:09:03,892] Executing clone script.
[2022-08-03 17:09:04,376] Appending log line to main log.
[2022-08-03 17:09:10,624] Script exited with exit code: 1
[2022-08-03 17:09:10,634] Not uploading caches. (numberOfCaches: 0, resultOrError: ERROR)
[2022-08-03 17:09:10,636] Not uploading artifacts. (numberOfArtifacts: 0, resultOrError: ERROR)
[2022-08-03 17:09:10,636] Updating step progress to PARSING_TEST_RESULTS.
[2022-08-03 17:09:10,899] Test report processing complete.
[2022-08-03 17:09:10,905] Updating step progress to COMPLETING_LOGS.
[2022-08-03 17:09:11,137] Shutting down log uploader.
[2022-08-03 17:09:11,140] Appending log line to main log.
[2022-08-03 17:09:11,475] Tearing down directories.
[2022-08-03 17:09:11,723] Cancelling timeout
[2022-08-03 17:09:11,727] Completing step with result Result{status=ERROR, error=Some(Error{key='runner.bitbucket-pipelines.clone-failure', message='We couldn't clone the repository. Try rerunning the pipeline.', arguments={}})}.
[2022-08-03 17:09:11,969] Setting runner state to not executing step.
[2022-08-03 17:09:11,971] Waiting for next step.
[2022-08-03 17:09:24,076] Updating runner state to "ONLINE".
I saw a similar thread but it is for docker, thus I am raising it as a new issue.
This is my yml file:
image: mcr.microsoft.com/dotnet/core/sdk:3.1
pipelines:
default:
- step:
runs-on:
- self.hosted
- windows
name: build and run
# caches:
# - dotnetcore
script:
- export SOLUTION_NAME=AutomationSolution
- export CONFIGURATION=Release
- export REPORTS_REL_PATH=./test-reports/build_${BITBUCKET_BUILD_NUMBER}
- export REPORTS_PATH=./${PROJECT_NAME}/test-reports/build_${BITBUCKET_BUILD_NUMBER}
- dotnet restore $SOLUTION_NAME.sln
- dotnet build --no-restore $SOLUTION_NAME.sln --configuration $CONFIGURATION
- export
- dotnet test --no-build $SOLUTION_NAME.sln --test-adapter-path:. --logger:"junit;LogFilePath=$REPORTS_REL_PATH/junit.xml"
Could you please advice?
Thank you,
Luis