Skip to main content

Bitbucket Integration

 

By using bitbucket pipelines we can integrate Diffy into your workflow.

 

Let's say you have two environments Development and UAT. Once you do a deployment to your Development environment you would like to compare it with UAT visually.

 

So idea is to run the `compare` job as one of the steps of the pipeline and fail the pipeline if there were some changes.

 

This is how it can be done.

Pipeline itself

Pipeline in essence installs our cli tool and run the shell script below

And here is the script runCheck.sh

As a future enhancement, I would suggest passing environment URLs to compare. Especially if you build environments per pull request.