Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions cmd/examples-copy/bitbucket.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,3 @@ To view all additional flags see the [sample-conf.yaml](https://github.com/gabri
```
ghorg clone microsoft --scm=bitbucket --token=<oauth-token>
```

## Hosted Bitbucket

1. Clone a workspace on a hosted bitbucket instance using an app-password

```
ghorg clone <workspace> --scm=bitbucket --bitbucket-username=<your-username> --token=<app-password> --base-url=https://<api.myhostedbb.com>/v2
```
8 changes: 0 additions & 8 deletions examples/bitbucket.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,3 @@ To view all additional flags see the [sample-conf.yaml](https://github.com/gabri
```
ghorg clone microsoft --scm=bitbucket --token=<oauth-token>
```

## Hosted Bitbucket

1. Clone a workspace on a hosted bitbucket instance using an app-password

```
ghorg clone <workspace> --scm=bitbucket --bitbucket-username=<your-username> --token=<app-password> --base-url=https://<api.myhostedbb.com>/v2
```
8 changes: 4 additions & 4 deletions scripts/bitbucket_cloud_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cp ./ghorg /usr/local/bin
BITBUCKET_WORKSPACE=ghorg

# clone an org with no config file
ghorg clone $BITBUCKET_WORKSPACE --token="${BITBUCKET_TOKEN}" --bitbucket-username="${BITBUCKET_USERNAME}" --scm=bitbucket --base-url="https://api.bitbucket.org/2.0" --output-dir=bb-test-1
ghorg clone $BITBUCKET_WORKSPACE --token="${BITBUCKET_TOKEN}" --bitbucket-username="${BITBUCKET_USERNAME}" --scm=bitbucket --output-dir=bb-test-1

if [ -e "${HOME}"/ghorg/bb-test-1 ]
then
Expand All @@ -20,7 +20,7 @@ else
fi

# clone an org with no config file to a specific path
ghorg clone $BITBUCKET_WORKSPACE --token="${BITBUCKET_TOKEN}" --bitbucket-username="${BITBUCKET_USERNAME}" --path=/tmp --output-dir=testing_output_dir --scm=bitbucket --base-url="https://api.bitbucket.org/2.0"
ghorg clone $BITBUCKET_WORKSPACE --token="${BITBUCKET_TOKEN}" --bitbucket-username="${BITBUCKET_USERNAME}" --path=/tmp --output-dir=testing_output_dir --scm=bitbucket

if [ -e /tmp/testing_output_dir ]
then
Expand All @@ -31,9 +31,9 @@ else
fi

# preserve scm hostname
ghorg clone $BITBUCKET_WORKSPACE --token="${BITBUCKET_TOKEN}" --bitbucket-username="${BITBUCKET_USERNAME}" --path=/tmp --output-dir=testing_output_dir --scm=bitbucket --base-url="https://api.bitbucket.org/2.0" --preserve-scm-hostname
ghorg clone $BITBUCKET_WORKSPACE --token="${BITBUCKET_TOKEN}" --bitbucket-username="${BITBUCKET_USERNAME}" --path=/tmp --output-dir=testing_output_dir --scm=bitbucket --preserve-scm-hostname

if [ -e /tmp/api.bitbucket.org/testing_output_dir ]
if [ -e /tmp/testing_output_dir ]
then
echo "Pass: bitbucket org clone, preserve scm hostname"
else
Expand Down
Loading