Create
cancel
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

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?

 

4 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

hi guys, 
 I have tried what @Philip Hodder mentioned above and it's working this is my solution
 this is the custom pipeline in my bitbucket config file to run cypress.
please try cypress/screenshots/**/*.png in artifact section

"cypress:pipeline": "cypress run --env user=${E2E_USER_EMAIL},pass=${E2E_USER_PASSWORD} --browser chrome --spec cypress/integration/src/**/*.spec.ts"
pipelines:
custom:
healthCheck:
- step:
name: Integration and E2E Test
script:
- npm install
- npm run cypress:pipeline
artifacts:
# store any generated images as artifacts
- cypress/screenshots/**/*.png

Same issue here. Any solution yet @Philip Hodder 

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)?

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

82 views 2 3
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