mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-05 22:07:12 +02:00
Update bitbucket_cloud_integration_tests.sh (#524)
This commit is contained in:
parent
e31cdc5397
commit
f077821c74
@ -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
|
||||
```
|
||||
|
@ -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
|
||||
```
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user