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

How can I debug BitBucket pipelines that use `pipe` steps?

I read over https://confluence.atlassian.com/bitbucket/debug-your-pipelines-locally-with-docker-838273569.html on how to set up docker to debug your bitbucket-pipeline.yml files.


Basically that sets up an environment the same as the one the pipeline file will run in, and lets you manually invoke commands, one at a time, to see if they work, then edit your bitbucket-pipeline file.

 

I'm having trouble with steps that use other pipes, like the 

- pipe: atlassian/aws-lambda-deploy:0.5.3

pipes to deploy a lambda to Amazon AWS.

 

How can I debug running that step locally to see what's going on? Is there a way in a docker container I can quickly change the pipeline file and make sure I have the right values for the pipe variables?

1 answer

1 accepted

0 votes
Answer accepted

Hi @Jim Jarrett 

The code for atlassian/aws-lambda-deploy pipe can be found here. To debug it locally you need to build the docker image locally and run it. 

Steps for running the pipe locally:

  1. git clone git@bitbucket.org:atlassian/aws-lambda-deploy.git
  2. cd aws-lambda-deploy/
  3. docker build -t atlassian/aws-lambda-deploy:0.5.3 .
  4. docker run -it -e AWS_ACCESS_KEY_ID=<AWS_KEY> --volume=/Users/luke/src/localDebugRepo:/localDebugRepo --workdir="/localDebugRepo" --memory=4g --memory-swap=4g --memory-swappiness=0 atlassian/aws-lambda-deploy:0.5.3

Let me know if this helps get you started!

Suggest an answer

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

Step up your DevOps game webinar Q&A series - Questions answered!

  On October 21st, 2020 we hosted a webinar titled,   Step Up You DevOps Game with 4 Key Integrations for Jira and Bitbucket. We had a great showing and high engagement, but that meant th...

109 views 0 1
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