Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bitbucket self hosted runner fails after successful execution

jgaleano
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2024

Hi, community,
I have a pipeline with which I am trying to run the automated tests of my API suite, using the runner to run self-hosted on Windows and be able to establish a local connection with the services and databases
When I run my tests locally they all pass and the execution is successful, but in the pipeline, the execution is failing despite not having tests with errors.

The tests I am running are using maven, java, rest assured, testng.

This is the part of the pipeline that is being executed
Where P refers to the profile in maven and -Denv is an environment variable that refers to the environment
image: maven:3.6.3
pipelines:
custom: api:
- step: runs-on:
- self.hosted
- windows
name: APIs Regression
caches:
- maven script:
- mvn clean test -P$Profile -Denv=$Environment
artifacts:
- allure-results/**
- reports/**
screenshot.PNG
This is part of the runner's logs
Test report processing complete.
Updating step progress to COMPLETING_LOGS.
Appending log line to main log.
Shutting down log uploader.
Tearing down directories.
Cancelling timeout
Completing step with result Result{status=FAILED, error=None}.
Setting runner state to not executing step.
Waiting for next step.
Finished executing step.

 

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2024

Hi @jgaleano,

Welcome to the community.

Would it be possible for you to try to re-create your Windows runners and see if it still fails?

Let me know how it goes.

Regards,
Mark C

jgaleano
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 5, 2024

Hi @Mark C ,


Thanks for your reply.


The runner was configured again from 0 and I still have the same problem, the tests run without problem, and even without error the pipeline is failing, and in the runner console you can see "Completing step with result Result{status=FAILED, error=None}"

Regards,

Julián G.

Like Sabine Mayer likes this
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2024

Hi @jgaleano


I'd suggest checking the Windows self-hosted runners logs and see if there are specific error messages that may explain why there are no logs presented on Bitbucket Cloud Pipelines UI.

Could you also ensure that your runner's version is up to date?

You can refer to this documentation on Troubleshooting runners.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events