BitBucket :
● Bitbucket is a Git repository management solution designed for professional teams.
● It gives you a central place to manage git repositories, collaborate on your source code,
and guide you through the development flow.
● Bitbucket provides lots of features that include the deployment of Bitbucket in three
different options - Bitbucket cloud, Bitbucket data center, and Bitbucket Server.
● It’s used in access control, pull requests, workflow control, integration of Jira, and full
rest API.
● The restriction of source code is provided by Bitbucket, which has access control.
Why do we need Bitbucket?
● It allows users to do basic Git operations (such as reviewing or merging code, similar to
GitHub) while controlling read and write access to the code.
● Bitbucket is focused on private repositories.
● It allows you to automatically build, test, and even deploy your code based on a
configuration file in your repository.
Steps for Bitbucket Integration:
● Login to FireFlink and navigate to the Configuration section.
● From there, proceed to Integrations and click on the Bitbucket Logo to initiate the
creation of a Bitbucket Instance.
● This process will prompt you to input your Bitbucket Username and Password.
● Next, open a new tab and search for Bitbucket Login, selecting the first link that appears.
● Click on the Login button and if you don't have an account, proceed to create one by
entering your email address.
● Verify your email by entering the received OTP.
● Once verified, input your Full Name and create a Password for your account, then click
on continue.
● Upon reaching the UI, specify a username for your account.
● Skip the following step
● create a workspace by clicking on the provided link.
● Choose a unique name that does not already exist as a workspace.
● Once the workspace is created, you will be redirected to the home page of Bitbucket.
● Navigate to the settings icon and choose "Personal Bitbucket Settings".
● Copy the username from the settings.
Paste this copied username into the FireFlink Platform while setting up the
Bitbucket instance.
● Proceed to click on "App Passwords" in the left navigation panel.
● Create a new app password and give a label to it.
● Return to FireFlink, and hover over the 'i' icon at the password text field to view
permission details.
● Follow the instructions to provide the necessary permissions for different aspects.
● Once you click on Create a popup with your password will be visible.
● Copy it and paste it into the FireFlink Bitbucket password text field, then click on Verify.
● After successful verification, fill in the required fields for the Instance name and select
the previously created workspace from the dropdown.
● Return to the Bitbucket website, click on its logo, and access the Create dropdown.
Choose the project option.
● Name the project, and create it.
● Once finished, go back to FireFlink and assign a name to the repository (It can be any
random name as it will be generated in BitBucket once the Instance is created).
● Select a project from FireFlink and a suite from that particular project.
● You'll encounter a popup to verify FireFlink credentials.
● Now an instance for Bit Bucket is created.
● Navigate back to Bitbucket, click on Repositories, and find your created repository.
● Access your repository and you'll be able to see the instance created in FireFlink.
● Navigate to Pipelines and initiate two-step verification.
● Follow the link provided for two-step verification to obtain a barcode.
● Now install an application called “Twilio Authy” for IOS devices.
And “Twilio Authy Authenticator” for Android devices.
● Register yourself in that application.
● Scan the QR code from Bitbucket in the application, confirm your details, and enter the
code generated within the given time frame.
● Enable verification via the email sent to you.
● Upon enabling verification, you'll be redirected to Bitbucket.
● Revisit repositories, select your repository, access pipelines, and Click on Run Initial
Pipeline
● Select the branch and pipeline, and click on the run button
● This will trigger the execution on the designated machine.
● The results of the execution will be visible on both the FireFlink execution dashboard
and Bitbucket.