Web Development

You Should Be Using BitBucket Pipelines

August 30, 2017

Commonly, developer workflows include pushing code to BitBucket. From there, you run processes like testing, updating a staging server, and generating documentation. All of these processes can become very repetitive. Thankfully, they can also be automated. That’s where Bitbucket Pipelines comes in.

It’s simple – you only have to create a set of scripts that run right after you make a push to Bitbucket.

How Does a BitBucket Pipeline Work?

Here’s a quick summary:

1) A Linux virtual machine is created with a Docker configuration

2) Your source code is copied to the virtual machine

3) Your scripts are run from a bitbucket-pipelines.yml file

Here is a very basic example of the bitbucket-pipelines.yml file located in the root of the repository:

Pipelines displays the result of running those scripts, which is particularly great because of how easy it is to monitor success.

Here is an example of a successful end-to-end test process:

And, here is a failure:

Easy-to-read visual displays help us make sure that our processes are on the right track. Delivery progress can be monitored at a glance, so that we can quickly address errors as they pop up.

Any Command Line Can Be Used in Pipelines

Here at Fresh, we use Pipelines to automate processes like:

  • Push build to Staging and Production Servers
  • Notify Slack or Email about test results

You can also run processes that require authentication against third-party services. For those cases, environmental variables are stored securely on BitBucket settings, keeping your repository free of hard-coded usernames and passwords.

Is it Worth the Effort?


Using Pipelines will save you hundreds of hours of time. It keeps developers synchronized about test results, documentation, and latest builds. Plus, you can integrate it with many other command line tools to improve productivity.

We highly recommend using BitBucket Pipelines in your workflow.

Xavier Reyes

Front-End Developer

You might also like...



9 Steps for Moving Sites Between Servers

Technical needs change over time. To have a better optimized website, this may mean migrating your website to a different server. Perhaps you’ve found a server more conducive to efficiency and performance, and you need guidance about how to switch. While it may seem like more hassle than it’s worth, moving your site isn’t as … Continued



Dev Terminology 101: Common Programming Languages (and their key frameworks)

Language enables human communication – spoken or written – with words and phrases structured in a conventional way. Just like we need different languages to communicate with one another, we also need different languages to communicate with computers. In an article on Stack Overflow, Matt Sherman writes that at a foundational level, all programming languages … Continued



Announcing Fresh Consulting’s WCAG 2.0 PHPCS Linter

Today, Fresh Consulting is announcing the release of our WCAG 2.0 PHPCS Linter. The linter is a set of rules (or sniffs) for PHP Code Sniffer which can automatically detect and alert when certain WCAG 2.0 violations are detected in code. WCAG 2.0 supports designers and developers in meeting the guidelines and success criteria of accessibility. The … Continued

Pacific Science Center

application maintenance and development

Pacific Science Center


mobile development



web design, microsite development


Seattle Public Library

ui/ux design, microsite development

Seattle Public Library