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

Need help setting the pipeline - php & gae

Hi guys,

 

I'm new to using pipelines, I need guidance on how to setup one and test it.

 

the type of pipeline i need is the one that deploys code to the production server

1 answer

Welcome! Sounds like you're looking for a deployment step, please check out the following resources that should lead you to some useful information:

Specifically for setting up deployments:

For deploying with/to Google App Engine (GAE), you either need the GAE SDK image or more specialized in Bitbucket Pipelines you can make use of the GAE deployment pipe:

The pipe image is based on the official GAE Docker image which is providing the "gcloud" utility, my recommendation is to have the Pipeline similar to what you can do locally and therefore I would suggest to start with the offical GAE Docker image.

Put the command to deploy into the pipeline step script, use the GAE image in that step, setup the deployment and bind it to that step (see Step 2: Configure your deployment steps in Set up Bitbucket Deployments)

Testing your Pipeline

Testing a Pipeline is outlined in Debug pipelines locally with Docker (Atlassian Support Bitbucket Resources).

For running, testing and debugging Bitbucket Pipelines, I can also recommend a local pipelines runner named pipelines, e.g. as you might have PHP and you may already have Docker installed locally:

(full disclosure: I'm the author of that utility) Caveat: Throwing more tools onto your problem might not lead you to better answers per-se. E.g. if you don't have Docker installed locally yet, install it and start with the directions of Debug pipelines locally with Docker first to better understand how Bitbucket Pipelines work and how to do things in detail locally.

The pipelines utility adds some more options like validation and verification (e.g. dry-run) as well as running Bitbucket Pipelines locally similar to remote with a limited feature set, behind the scenes it just runs the step scripts in Docker containers defined in the bitbucket-pipelines.yml file. The benefit of it are faster iterations on bitbucket-pipelines.yml changes and getting the base setup to work. It does not have support for Pipes (yet), so there are some limitations, just saying.

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

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