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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to tell self hosted Windows pipeline runner to skip the cleanup routine of a build step

I am troubleshooting a git issue with self hosted runner on windows. I feel it is lot easier if the runner leaves behind cloned dir as it is instead of cleaning it up.


Wondering if there is any YML directive or some other setting to tell runner to disable cleanup step.



1 answer

0 votes
Ben Atlassian Team Jun 30, 2022


At the end of each step in a pipeline, the runner automatically cleans up build directories (folders) before running the next step. If the runner can’t perform this cleanup, it will enter an Unhealthy state and this can prevent Pipelines from being able to execute.

For this reason, I am unaware if it is possible to disable the clean-up step on a build within runners as this would not be recommended.

We have documentation outlining how to check the log files for Windows Runners available at the following link - this way you can check to see any errors which are encountered during the build: 

I have reached out to our developers accordingly to see if/how this can be configured and will get back to you once I hear from them.


- Ben (Bitbucket Cloud Support)

Ben Atlassian Team Jun 30, 2022

Hi again,

I've been informed that this is not possible - however, some ideas for a workaround are:

  • Add a "sleep" command in the script to give you sufficient time to navigate to the folder and copy it manually to another location
  • If the runner enters "UNHEALTHY" state, simply restart the runner which should bring it back online 

Hope this helps.


- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events