Hi Atlassian team,
I am having an issue with a Bitbucket Cloud Windows self-hosted runner.
Environment:
- Bitbucket Cloud Free
- Windows self-hosted runner
- Runner version: 6.0.7
- Runtime: windows-powershell
- OpenJDK: 25.0.4
- Runner labels: self.hosted, windows
The runner starts successfully and remains ONLINE.
The problem occurs even with a minimal pipeline containing only:
pipelines:
branches:
main:
- step:
name: Test Windows Runner
runs-on:
- self.hosted
- windows
script:
- 'Write-Host "WINDOWS RUNNER TEST"'
- 'dotnet --version'
- 'wix --version'
- 'Write-Host "RUNNER TEST SUCCESS"'
- 'exit 0'
All commands execute successfully.
The runner log shows:
Executing build script in native script
Script exited with exit code: 0
However, immediately afterward the runner reports:
Not uploading caches. (numberOfCaches: 0, resultOrError: ERROR)
The test report parsing also completes successfully:
Successfully parsed JUnit report with tests=0, failures=0, errors=0, skipped=0
Then the runner finishes with:
Completing step with result Result{status=ERROR, error=Some(Error{key='runner.bitbucket-pipelines.build-failure' ...})}
The runner remains ONLINE after the failure.
There are:
- No artifacts configured
- No cache configured
- No application build involved
- No MSI/WiX build involved
The issue therefore reproduces with a completely minimal pipeline.
Could you please help identify why the Windows self-hosted runner is marking the step as ERROR even though the script exits with code 0?
I can provide the complete runner log and pipeline run details if required.