It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use artifacts in the Bitbucket Pipelines? Edited

I've been following this article regarding using Artifacts in the Pipelines, however I stuck and I have no idea WHERE these artifacts are and how can I access them.

To be more specific about my problem, please take a look on my `bitbucket-pipelines.yml` to understand my issue:

image: microsoft/dotnet:2.0-sdk
- step:
name: API Build
- dotnetcore
- mkdir -p dist/
- cd api-core/AzureApi/
- dotnet restore
- dotnet publish -c prod
- mv bin/prod/netcoreapp2.0/publish/ $BITBUCKET_CLONE_DIR/dist/api/
- dist/**
- step:
name: Frontend Build
image: node:6.11.4
- nodewrapper
- cd app/
- yarn --non-interactive
- npm run build
- mv dist/ $BITBUCKET_CLONE_DIR/dist/app/
- dist/**
- step:
name: Deploy
image: trsouz/rsync
- ls -lah dist/ # Buuu! Not exists
- ls -lah $BITBUCKET_CLONE_DIR/dist/ # Buuu! Not exists
nodewrapper: app/node_modules

Problem is that the `dist/` folder is not available (or I just can't find it)
And yes - my build steps are working fine and they are in fact copying built artifacts to the specified path, but after step is completed it's no longer there...

Please, can you direct me with some example?



1 answer

3 votes

Hi Piotrek,

It looks like you have mispelt 'artifacts'.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,042 views 1 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you