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

How to use artifacts in the Bitbucket Pipelines?

Piotrek Dabrowski October 29, 2017

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
pipelines:
custom:
deploy-UAT:
- step:
name: API Build
caches:
- dotnetcore
script:
- mkdir -p dist/
- cd api-core/AzureApi/
- dotnet restore
- dotnet publish -c prod
- mv bin/prod/netcoreapp2.0/publish/ $BITBUCKET_CLONE_DIR/dist/api/
articacts:
- dist/**
- step:
name: Frontend Build
image: node:6.11.4
caches:
- nodewrapper
script:
- cd app/
- yarn --non-interactive
- npm run build
- mv dist/ $BITBUCKET_CLONE_DIR/dist/app/
articacts:
- dist/**
- step:
name: Deploy
image: trsouz/rsync
script:
- ls -lah dist/ # Buuu! Not exists
- ls -lah $BITBUCKET_CLONE_DIR/dist/ # Buuu! Not exists
definitions:
caches:
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?

Cheers,

Piotr

1 answer

7 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 1, 2017

Hi Piotrek,

It looks like you have mispelt 'artifacts'.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events