Update bitbucket_cloud_integration_tests.sh (#524)

This commit is contained in:
gabrie30 2025-05-11 10:59:10 -07:00 committed by GitHub
parent e31cdc5397
commit f077821c74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 20 deletions

View File

@ -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
```

View File

@ -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
```

View File

@ -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
@ -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
@ -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