Access file:///opt/atlassian/pipelines/agent/build/sdk/build/reports/tests/testDebugUnitTest

Thank you folks for pipelines, its a great tool for developers. I am using it for building android projects. It would have been nice if pipelines supported building android project natively. I am using a 3rd party docker image to build my android project. The script looks like this.

image: beevelop/android:latest

pipelines:
  default:
    - step:
        script:
          - chmod +x gradlew
          - ./gradlew assembleDebug
          - ./gradlew test

Right now if my test fails I am getting this error

 

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sdk:testDebugUnitTest'.
> There were failing tests. See the report at: file:///opt/atlassian/pipelines/agent/build/sdk/build/reports/tests/testDebugUnitTest/index.html

Is there a way to access this report from bitbucket?

1 answer

1 vote

Hi Omkar! This file seems to be inside your docker (the one you're using to run the pipelines).There's no way for us to view the log on our end because the error was generated within the docker container. You can run another build and "cat" this file. To view the error, follow the steps:

  1. Perform the build locally and navigate to the directory to view the error. More info at Debug your Pipelines locally with Docker.
  2. Enable verbose logging while performing the build, see how at https://docs.gradle.org/3.3/userguide/logging.html.
  3. Run another build with "cat /opt/atlassian/pipelines/agent/build/sdk/build/reports/tests/testDebugUnitTest/index.html"

Hope this helps :)

Ana

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,571 views 26 12
Join discussion

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