Bitbucket Pipelines is a continuous delivery service built within Bitbucket Cloud. Bitbucket Cloud is part of the Atlassian suite of tools that also include JIRA Software (ticketing system) and Hipchat (collaboration).
This simple integration with Ansible Tower and Atlassian Bitbucket Cloud allows a developer to check-in code and have it deployed - all within an automated workflow.
Here’s an example of using Bitbucket and Ansible Tower to connect your DevOps workflows:
This integration is built using the Tower-CLI tool to issue commands that point at specific Tower Job Template. It’s really just a start to show what is possible. The Tower API and CLI make it easy to integrate Tower into nearly any process.
Trigger to Ansible Tower:
Use this example script for launching an Ansible Tower job from Bitbucket Pipelines.
How to use it:
1. Add required environment variables to your Bitbucket environment variables.
2. Make sure you already have an Ansible YAML file.
3. Copy tower.bash to your project.
4. Add tower.bash to your build configuration.
Required environment variables:
Trigger the Ansible job:
Extend the power of Ansible to your entire team
Example script for launching an Ansible Tower job from Bitbucket Pipelines
Ansible Tower CLI is a command line tool and client library for Ansible Tower's REST API
Ansible Quick Start - Introduction to Ansible