Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to the repository and click on the settings icon.

  2. Go to "User Management" and click on "Invite."

    1. Here click on Invite button and the redirect to Invite people to Bitbucket screen.

image-20241029-130228.pngImage Added

  1. There will be 3 group permissions:

  • bitbucket-admins

  • bitbucket-user-access-admins

  • butbucket-users

Select the group permission "bitbucket-admins-themedeploy-stagingpro"

...

Add stagingpro as a user, assign it "Admin" permission at the repository level

 

...

  1. Click on Invite users button to send the invitation

  2. For additional users:

    • Assign developer permissions.

    • Follow similar steps, but assign different permissions.

...

image-20241029-120549.png

Step 5: Verify Repository

...

To remove a user, click "Remove" in StagingPro. This action removes the user from StagingPro but not from Bitbucket.

...

Create OAUTH Token

Generate your own OAuth consumer key and secret key to build your own custom integration with Bitbucket.

1) Add OAuth Consumer

Click on Settings > workspace settings > OAuth Consumer > Add Consumer

...

image-20241029-123915.png

2) After entering all the necessary fields on the OAuth Consumer form, click on save. You can integrate using the the following API url.

https://bitbucket.org/bigisagingprothemedeploy-stagingpro/workspace/settings/api

Code Deployment Process

   a) Workflow for direct commit

...

  1. After cloning branch go the folder Make some changes in the files

  2. Open gitbash and write cd  Productione160c1(“cloned folder);

  3.  git clone --branch branchname https://bigistagingprolatest:$authtoken@bitbucket.org/bigistagingpro/stagingprostaging.git branchname 

  4. After cloning branch do cd branchname  

  5. Make changes in the required file

  6. git status to check the changes 

  7. git add --all : to add all the changes

  8. git commit -m 'Commit Message'

  9. git push origin branchname

  10. Then go to code deployment screen there you can see the direct commit changes like this                                                                                                                                                                                                                 

  11. By clicking on “Generate Preview and Approve Later” link user can launch Preview for direct commit                                                                                                                                                                                                 

  12. Click on “Approve and Deploy to initiate deployment

    1.  Workflow for Pull Request

      1. Create Pull request in your bitbucket account under repository section 

      2. See the left menu and click on “Pull request”

  13.  Click on create pull request on the top right side then select the Environment branch for the destination branch dropdown.                                                                                                                                                           

    1. you will see this screen where you can add your comment and then click on “approve” and “merge”                                                                                                                                                                                        

  14. After clicking merge you will see this screen 

    Image Removed

...

  1. You can add your comment but do not made modifications on top commit message like “Merged in Akanksha247e160c1472899 (pull request #12)” and simply click on “Merge” button Then you will start seeing entries like this under “Code Deployment” 

  2. Image Modified

Here you can see the generate Preview link click on “Generate Preview and Approve Later” link and select the correct note version from dropdown and then again click on “Launch Preview” button.

...

                                                                                                                                                                                Staging Pro StagingPro Deployment workflow

The following illustration shows the suggested ideal process as part of the Git development workflow with Pull request, that can be implemented as part of your StagingPro setup.

...

The status will show as ‘Rejected|Code Not approved’

...

A few

...

Bitbucket FAQS

Q1. After giving Admin access to StagingPro Git repository, I see some autogenerated code branches e.g. Productione347c1, so should I keep the names as it is?
A1. Yes, that is correct. These environment branch names are autogenerated and required for code commit tracking. Please do not delete or rename these branches as it will affect the BitBucket integration.

...