We are running a Windows based self-hosted runner.
Out bitbucket-pipelines.yml contains one step:
pipelines:
default:
- step:
name: Build firmware
runs-on:
- self.hosted
- windows
- build
script:
- C:\tmp\Python\python.exe C:\tmp\mpr-testrack\main_build.py
- dir C:\tmp\TMP_DST\mpr2\out
- mkdir %BITBUCKET_CLONE_DIR\out
- move C:\tmp\TMP_DST\mpr2\out\* %BITBUCKET_CLONE_DIR\out\
- dir %BITBUCKET_CLONE_DIR\out
artifacts:
- out\**
- out/**
The idea is to copy the build files to %BITBUCKET_CLONE_DIR\out to have the option to download these from the bitbucket webpage.
Under the script section everything works fine (the move as well as the last dir)
When teardown is performed, bitbucket does not find the artifacts:
Searching for files matching artifact pattern out/**<span>Searching for files matching artifact pattern out\**<br></span>
Under "Artifacts": "No Artifacts uploaded"
For testing purposes I implemented a following step in the pipeline and there the working directory is this:
efe\1713264850790\build<span>C:\bucher\bitbucket_runner\atlassian-bitbucket-pipelines-runner\temp\889d0a5a-cc18-5f20-b774-c8b042721</span>
I don't know where the build subfolder comes from.
And in that working directioy there is no out folder.