Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Why can't I see the artifacts?

Hi,

I run e2e tests on CI environment, but I cannot see the artifacts.

 

bitbucket-pipelines.yml:

imagecypress/base:10
options: max-time20
pipelines: 
    default: 
        -
step: 
            script
                - npm install 
                - 
npm run test 
            artifacts: 
                - 
/opt/atlassian/pipelines/agent/build/cypress/screenshots/* 
                - 
screenshots/*.png
                - **/*.png

 

2018-11-19_12h32_49.png2018-11-19_12h35_08.png
Maybe I typed the wrong path, but I am not sure. Does anyone have any ideas what I am doing wrong?

 

3 answers

Hi
I'm facing the similar issue, step 1 produces .tar , step 2 can find it and use it but step 3 does not find the artifact at all. :(
any solution yet?

 

thanks

0 votes

Hi Piotr,

What do you see if you list the content of directories?

imagecypress/base:10
options: max-time20
pipelines: 
    default: 
        -
step: 
            script
                - npm install 
                - 
npm run test
- ls -R /opt/atlassian/pipelines/agent/build/cypress/screenshots
- ls -R screenshots
- ls -R
            artifacts: 
                - 
/opt/atlassian/pipelines/agent/build/cypress/screenshots/* 
                - 
screenshots/*.png
                - **/*.png

What are in the logs listed in your 'Build Teardown'? Is there any reference to artifacts?

Thanks,

Phil

Hi Philip Hodder,

Thank you for the answer.
I tried very many different cases to get screenshots, but it still doesn't work, even with your suggestion, and I have not any idea why, what wrong could be with it?

 

Thanks,
Piotr

Can you post the log output for a build using the configuration I provided? We can use that to debug further.

I tried as you wrote. When every pipeline (tests) failed then I always got this message:

2018-12-05_12h36_50.png

What I'd like to do is to see screenshots when something went wrong.
Artifacts tab is still blank

Can you try this YAML instead?

imagecypress/base:10
options: max-time20
pipelines: 
    default: 
        -
step: 
            script
                - npm install 
                - 
npm run test 
            artifacts: 
                - 
/opt/atlassian/pipelines/agent/build/cypress/screenshots/** # Double star provides recursive search.

If that doesn't work. Can you take a screenshot of the 'Build Teardown' section, as there is a 1GB file size limit for artifacts, and you may be hitting it.

e.g.

Screen Shot 2018-12-06 at 10.46.51 am.png

I tried change artifact's path to many different options, but nothing helps. Here is an example of 'Build teardown':

image.png

I also tried to add: 

- set +e npm run test

to 

bitbucket-pipelines.yml

to pass pipeline, but nothing happened, and every time I get the result as shown above

Hi @piotrpodyma ! Do you have any success results (get screenshots)?

Same issue here. Any solution yet @Philip Hodder 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

525 views 6 4
Read article

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