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

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

Some artifacts not copied over to following step

Hi community,

I have build a deployment pipeline consisting of 2 steps. The first step builds the project and the second deploys it to SAP Cloud Platform.
My problem is, in the second step the zip file from the first step is not existent.

image: ppiper/mta-archive-builder:latest

    - step:
        name: "MTA build"
          - node
          - maven
          - mtaBuild --mtar dist/build-$ --build-target CF build
          - mv bitbucket-pipelines.yml dist/
          - dist/**
    - step:
        name: "Deploy to Staging"
        image: ppiper/cf-cli
        deployment: staging
          - cf login -a "$CF_ENDPOINT" -u "$CF_USER" -p "$CF_PASSWORD" -o "$CF_ORG" -s "$CF_SPACE"
          - ls dist/
          - cf deploy "dist/build-$"

Output from step 1:

You already have a 'node' cache so we won't create it again
You already have a 'maven' cache so we won't create it again
Searching for files matching artifact pattern dist/**
Artifact pattern dist/** matched 2 files with a total size of 93.7 MiB
Compressed files matching artifact pattern dist/** to 93.7 MiB in 3 seconds
Uploading artifact of 93.7 MiB
Successfully uploaded artifact in 6 seconds
Searching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4

Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.

According to the logs 2 files were uploaded, which is the correct number. I also downloaded the artifact and validated that build-$ and bitbucket-pipelines.yml (just to see if anything is copied over) are exported.

Build setup step 2:

Artifact "dist/**": Downloading
Artifact "dist/**": Downloaded 93.7 MiB in 2 seconds
Artifact "dist/**": Extracting
Artifact "dist/**": Extracted in 0 seconds

So downloaded size and uploaded size from build setup matches. But ls lists only one file. 

+ ls dist/

 What happened with my second file? In the logs there are no error messages from bitbucket. Only my deploy step fails as there is no zip file.

Any ideas what I can do to debug the issue?

Kind regards

1 answer

To debug assets, once they have been created, you can find them in the webinterface for download (at the top, like tabs, first tab is the build log, next tab should be assets).

Sometimes downloading and inspecting them gives some pointers.

In your quest, I guess the file-size of the asset shows that it should contain the .zip file as well. So this comes a bit unexpected I must admit, as you say it's not extracted (the ls output shows actually).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

69 views 4 4
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you