The Last Bitbucket Pipelines Tutorial You’ll Ever Need: Mastering CI and CD

An incredibly powerful tool that will save you time and save you from configuration headaches!

Photo by Me! from Pexels

Are You Always Logging on to Your Server with SSH and Fighting with Your Builds and Deploys?

Bitbucket Pipelines?

A “Hello World” Bitbucket Pipelines File

Example step output showing “Hello world!” outputted on the first step.
Example step output.

Validating and Checking Pipeline Files

The Bitbucket Pipelines validator finding an error in the indentation.
Error caught by the Bitbucket Pipelines validator.

Enough With the Beginner Stuff! Let’s Make a Pipelines File for a Real Build!

A gif of pinnochio shouting “I’m a real boy!”
I’m a real boy!
...
"scripts": {
"build": "tsc"
}
...

Save Dist Folder and NPM Modules Artifacts

SCP to Copy Artifacts to Your Server of Choice

SSH to Login to Your Server of Choice

Bonus: Multi-Branch and Multi-Environment System

env
├── .env.develop.json
├── .env.json
├── .env.production.json
└── .env.staging.json

Bonus: Add a Slack Bot and a Messaging Webhook

Plug Time: Learn All This and More in my Bitbucket Pipelines Mastery Course!

Lesson 1 of my Mastering Bitbucket Pipelines course!

Thanks!

--

--

https://option-screener.com https://wheelscreener.com https://chrisfrew.in 👨‍💻 Full Stack Software Engineer 🏠 Austria/USA 🍺 Homebrewer ⛷🏃‍ 🚴 Outdoorsman

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store