I am new to bamboo. What I try to do is collecting all .dacpac
files that are created during the build process.
image: microsoft/dotnet:latest
pipe
In bitbucket-pipelines.yml, whenever you progress to a different "step:
", it will reset almost everything and behave independently to a previous step. This is not always obvious, and can be confusing.
In your previous step, you moved into a sub-folder using cd BackgroundCode
. When the script progresses to the "artifacts:
" step, the current working directory will reset back to its original $BITBUCKET_CLONE_DIR
. So you need to cd BackgroundCode
again in each step or use a path that's relative to the $BITBUCKET_CLONE_DIR, like this:
artifacts:
- BackgroundCode/**/*.dacpac
or
step2:
- cd BackgroundCode
# List the files relative to the 'BackgroundCode' directory
- find . -iname '*.dacpac'
This will now save the artifact automatically (for 7 days), and you can see it in the "Artifacts" tab at the top.