Skip to content

Commit 3f00214

Browse files
author
RahulMR42
committed
bb cloud
1 parent ae346da commit 3f00214

File tree

1 file changed

+28
-27
lines changed
  • oci-coderepo-examples/oci-devops-coderepo-with-bitbucketcloud

1 file changed

+28
-27
lines changed
Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
A sample illustration of [Bitbucket Cloud ](https://bitbucket.org/product?&aceid=&adposition=&adgroup=92542404895&campaign=1407242867&creative=544605032325&device=c&keyword=bitbucket%20cloud&matchtype=e&network=g&placement=&ds_kids=p51241240716&ds_e=GOOGLE&ds_eid=700000001551985&ds_e1=GOOGLE&gclid=EAIaIQobChMIsa_OyLy--AIV8pJmAh079go-EAAYASAAEgLsifD_BwE&gclsrc=aw.ds) code repo integration with OCI Devops.
1+
A sample illustration of [Bitbucket Cloud ](https://bitbucket.org/product?&aceid=&adposition=&adgroup=92542404895&campaign=1407242867&creative=544605032325&device=c&keyword=bitbucket%20cloud&matchtype=e&network=g&placement=&ds_kids=p51241240716&ds_e=GOOGLE&ds_eid=700000001551985&ds_e1=GOOGLE&gclid=EAIaIQobChMIsa_OyLy--AIV8pJmAh079go-EAAYASAAEgLsifD_BwE&gclsrc=aw.ds) code repo integration with OCI DevOps.
22

33
--------
44

55
#### Objectives
66

7-
- Create an APP Password on Bitbucket Cloud .
8-
- Create vault ,policies as accordingly.
9-
- Create a devops connection and integrate with OCI.
7+
- Create an APP Password on Bitbucket Cloud.
8+
- Create vault, and policies accordingly.
9+
- Create a DevOps connection and integrate it with OCI.
1010
- Test and validate the integrations.
1111

1212
* Specific instruction to clone only this example.
@@ -15,15 +15,15 @@ A sample illustration of [Bitbucket Cloud ](https://bitbucket.org/product?&aceid
1515
$ git init oci-devops-coderepo-with-bitbucketcloud
1616
$ cd oci-devops-coderepo-with-bitbucketcloud
1717
$ git remote add origin https://github.com/oracle-devrel/oci-devops-examples
18-
$ git config core.sparsecheckout true
18+
$ git config core. sparsecheckout true
1919
$ echo "oci-coderepo-examples/oci-devops-coderepo-with-bitbucketcloud/*">>.git/info/sparse-checkout
2020
$ git pull --depth=1 origin main
2121
2222
```
2323
24-
#### Procedure
24+
#### Procedure
2525
26-
- Follow Bitbucket Cloud documentation and do a sign in. - https://bitbucket.org/product/guides
26+
- Follow Bitbucket Cloud documentation and do a sign-in. - https://bitbucket.org/product/guides
2727
- Click `profile` on the top right corner and click `Personal Setting`.
2828
2929
![](images/bitbucket_profile.png)
@@ -34,7 +34,7 @@ A sample illustration of [Bitbucket Cloud ](https://bitbucket.org/product?&aceid
3434
3535
- In the `left-side menu`, click `App passwords` and then click Create app password.
3636
- Enter a `Label (name)` for the password.
37-
- Select the following check boxes for Permissions:
37+
- Select the following checkboxes for Permissions:
3838
- Account: Read
3939
- Workspace membership: Read
4040
- Projects: Read
@@ -45,39 +45,39 @@ A sample illustration of [Bitbucket Cloud ](https://bitbucket.org/product?&aceid
4545
- Click Create.
4646
- Copy the app password immediately to a secure location, because you cannot retrieve it again after you navigate away from the page.
4747
48-
- In order to securely store and orchestrate Gitlab Personal Access token , we will create a new OCI Vault for now .
48+
- To securely store and orchestrate Gitlab Personal Access token, we will create a new OCI Vault for now.
4949
50-
- Create a new vault under the concerned compartment. - https://docs.oracle.com/en-us/iaas/Content/KeyManagement/Concepts/keyoverview.htm#Overview_of_Vault
50+
- Create a new vault under the concerned compartment. - https://docs.oracle.com/en-us/iaas/Content/KeyManagement/Concepts/keyoverview.htm#Overview_of_Vault
5151
5252
![](images/new_vault.png)
5353
5454
- Create a new `Encryption Key`.
5555
5656
![](images/vault_key.png)
5757
58-
- Create a new secrets and store the Bitbucket Cloud App password.
58+
- Create a new secret and store the Bitbucket Cloud App password.
5959
6060
![](images/bb_app_password.png)
6161
62-
- Create a `Dynamic group` with below rules .
62+
- Create a `Dynamic group` with the below rules.
6363
6464
```
6565
ALL {resource.type = 'devopsconnection', resource.compartment.id = 'ocid1.compartment.oc1..xxxxx'}
6666
```
6767
68-
- Create a policy (Ensure to create it under the ROOT of tenancy) for the dynamic groups with below policy statement.
68+
- Create a policy (Ensure to create it under the ROOT of tenancy) for the dynamic groups with the below policy statement.
6969
7070
```
7171
Allow dynamic-group mr-devops-policy-checker-dg-connection to read secret-family in compartment <compartment name>
7272
Allow dynamic-group mr-devops-policy-checker-dg-connection to use ons-topics in compartment <compartment name>
7373
```
7474
75-
- Create a notification topic ,that will be used for devops - https://docs.oracle.com/en-us/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createTopic
75+
- Create a notification topic, that will be used for DevOps - https://docs.oracle.com/en-us/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createTopic
7676
7777
![](images/oci-notifications.png)
7878
7979
80-
- Create a devops project - https://docs.oracle.com/en-us/iaas/Content/devops/using/create_project.htm#create_a_project
80+
- Create a DevOps project - https://docs.oracle.com/en-us/iaas/Content/devops/using/create_project.htm#create_a_project
8181
- Ensure to associate it with a `notification topic` created.
8282
8383
![](images/devops_project.png)
@@ -86,29 +86,29 @@ Allow dynamic-group mr-devops-policy-checker-dg-connection to use ons-topics in
8686
8787
![](images/enable_logging.png)
8888
89-
- Select the logging details and enable .
89+
- Select the logging details and enable.
9090
9191
- Create a new `external connection` - https://docs.oracle.com/en-us/iaas/Content/devops/using/create_connection.htm
9292
9393
![](images/devops_ec1.png)
9494
95-
- Select the type as `Bitbucket Cloud`.
96-
- Provide the `Bitbucket username ` as username.
97-
- Assocaite with the Vault and the `Secret` created
95+
- Select the type as `Bitbucket Cloud`.
96+
- Provide the `Bitbucket username ` as the username.
97+
- Associate with the Vault and the `Secret` created
9898
9999
![](images/devops_ec2.png)
100100
101-
- Use devops `Code Repositories` and mirror Bitbucket Cloud to oci devops. - https://docs.oracle.com/en-us/iaas/Content/devops/using/mirror_repo.htm
101+
- Use DevOps `Code Repositories` and mirror Bitbucket Cloud to oci DevOps. - https://docs.oracle.com/en-us/iaas/Content/devops/using/mirror_repo.htm
102102
103103
![](images/devops_mirror_repo.png)
104104
105105
106-
- Select the external connection created and select the Bitbucket Cloud repository. You may mention a custom name (as optional) which will be used when the external repo is cloned to OCI Code repo.
107-
- You may alter the Scheduling type to a custom value if needed .The default sync is `15 minutes`.
106+
- Select the external connection created and select the Bitbucket Cloud repository. You may mention a custom name (as optional) which will be used when the external repo is cloned to the OCI Code repo.
107+
- You may alter the Scheduling type to a custom value if needed. The default sync is `15 minutes`.
108108
109109
![](images/create_mirror_repo.png)
110110
111-
- After a while the repo will be available via `OCI Code Repo`
111+
- After a while, the repo will be available via `OCI Code Repo`
112112
113113
![](images/mirror_progress.png)
114114
@@ -117,12 +117,13 @@ Allow dynamic-group mr-devops-policy-checker-dg-connection to use ons-topics in
117117
Contributors
118118
===========
119119
120-
- Author : Rahul M R.
121-
- Collaborators : NA
122-
- Last release : June 2022
120+
- Author: Rahul M R.
121+
- Collaborators: NA
122+
- Last release: June 2022
123123
124124
### Back to examples.
125125
----
126126
127127
- 🍿 [Back to OCI Devops Coderepo sample](./../README.md)
128-
- 🏝️ [Back to OCI Devops sample](./../../README.md)
128+
- 🏝️ [Back to OCI Devops sample](./../../README.md)
129+

0 commit comments

Comments
 (0)