Save artifacts on self hosted runner

Gabdelgaziz Sayfutdinov November 6, 2024

I am using a windows server as a self hosted runner. 

In my pipeline, I am trying to create artifacts. The artifacts are being created and I see that when the pipeline is running for some commit. 

But after the pipeline is done, all the auto-generated folders, such as artifact, build, cache, ssh and tmp are deleted. 

When I want to download the artifact for a run for a commit, it shows that there are no artifacts. 

Is it possible to create artifacts and for them to be downloadable from the bitbucket repository? 

Here is my yml file: 

pipelines:
  default:
    - step: 
        name: Build Firmware in Keil 
        runs-on: 
          - self.hosted
          - windows
        script: 
          - echo "Build Firmware in Keil"
          - powershell -Command "& 'C:\\Keil_v5\\UV4\\UV4.exe' -r nav_terra_17.uvprojx -t 'Applikation'"
          - powershell -ExecutionPolicy Bypass -File .\.automation\run_keil_build.ps1
          - powershell -ExecutionPolicy Bypass -File .\.automation\check_keil_output.ps1
        artifacts:
          - .\Obj\App.bin 


The App.bin file exists and I made sure of that. 

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2024

Hi @Gabdelgaziz Sayfutdinov 

To troubleshoot this effectively - we'd need to see runner logs/YML configuration/build logs. To share these, and for system approval to gain access to check your settings - we would need a Bitbucket Cloud support ticket.

As you are a Premium customer, please raise a ticket using your workspace URL so we can troubleshoot this further:

If you have issues doing so, please let us know and we can raise one on your behalf.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

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

Atlassian Community Events