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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Bitbucket Pipelines Error Log

Is there any way to see the error log that happens in the pipeline?

Here's my YAML file

# This is a sample build configuration for PHP.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Dockerhub as your build environment.
image: phpunit

pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - composer install
          - phpunit --bootstrap ./autoload.php --no-configuration src/tests


The build is failing but when I do the exact command in my development - "phpunit --bootstrap ./autoload.php --no-configuration src/tests". It works properly.

Having able to see the logs will really help. 

 

1 answer

0 votes

Hi Michael,

You can view the logs of all your pipelines by navigating to the Pipelines page:

step1.png

You can then select the pipeline you wish to see the logs of: 

step2.png

The logs are output here, you may need to click on the 'phpunit' or 'composer install' commands to expand the logs:

step3.png

If you require more logging, you can try and add the --verbose flag to phpunit. i.e use this script instead:

# This is a sample build configuration for PHP.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Dockerhub as your build environment.
image: phpunit
 
pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - composer install
          - phpunit --verbose --bootstrap ./autoload.php --no-configuration src/tests

You may want to try this guide as well https://answers.atlassian.com/questions/39230190 As there are some possible variations that could cause your build to pass locally but fail in Bitbucket Pipelines. For example, caching of dependencies or the 2Gb memory limit on the build.

Those last two attachments (step2.png + step3.png) don't seem to make any sense at all.

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,926 views 0 7
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