An alternate approach to CI/CD for WSO2 using Bitbucket and Bitbucket Branch Source Plugin

Photo by JJ Ying on Unsplash

Background

Approach

Full CI/CD process
Dev CI/CD Pipeline
Prod CI/CD Pipeline

Prerequisites

Implementation

Bitbucket Project
Bitbucket Repository
Jenkins Webhook
Configure Bitbucket Endpoint
Configure Global Pipeline Library
Create New Item
Bitbucket Branch Source Plugin Config 1
Provision Bitbucket Credentials in Jenkins
Bitbucket Branch Source Plugin Config 2
Bitbucket Branch Source Plugin Config 3
Multibranch Pipeline Scan Log
Discovered Branches and Tags

Testing

git add pom.xmlgit commit -m “updating pom file”git push origin master
Successfully Built Branch
Car file copied to file system
Car file deployed in EI Dev
git tag -a v1.0.0 -m “tagging v1.0.0”git push origin v1.0.0
User input for Prod Deployment
Successfully Built Tag
Car file copied to file system
Car file deployed in EI Prod

References