Bitbucket Pipelines is an integrated CI/CD service built into Bitbucket. It allows you to automatically build, test, and even deploy your code based on a configuration file in your repository. Essentially, we create containers in the cloud for you. Inside these containers, you can run commands (like you might on a local machine) but with all the advantages of a fresh system, customized and configured for your needs.
Understand the YAML file
A pipeline is defined using a YAML file called bitbucket-pipelines.yml, which is located at the root of your repository. For more information on configuring a YAML file, refer to Configure bitbucket-pipelines.yml.
Configure your first pipeline
There are two ways to configure your pipeline: you can either directly write the YAML file or you can use the UI wizard provided by Bitbucket. The steps below will guide you through the Pipelines configuration wizard.
You need to have a Bitbucket Cloud account.
Your workspace must have at least one repository.
In Bitbucket, go to your repository and select Pipelines.
Click Create your first pipeline to scroll down to the template section.
Choose one of the available templates. If you aren’t sure, you can use the one RECOMMENDED.
Templates cover a variety of use cases and technologies such as apps, microservices, mobile IaaC, and serverless development. We support major cloud providers such as AWS, Azure, and GCP. We support the top-used languages such as NodeJS, PHP, Java, Python, and .NET Core; however, based on the language configured in your Bitbucket repository, the template list automatically recommends templates in that language.