diff --git a/cmd/examples-copy/bitbucket.md b/cmd/examples-copy/bitbucket.md index be33bf1..813e523 100644 --- a/cmd/examples-copy/bitbucket.md +++ b/cmd/examples-copy/bitbucket.md @@ -19,11 +19,3 @@ To view all additional flags see the [sample-conf.yaml](https://github.com/gabri ``` ghorg clone microsoft --scm=bitbucket --token= ``` - -## Hosted Bitbucket - -1. Clone a workspace on a hosted bitbucket instance using an app-password - - ``` - ghorg clone --scm=bitbucket --bitbucket-username= --token= --base-url=https:///v2 - ``` diff --git a/examples/bitbucket.md b/examples/bitbucket.md index be33bf1..813e523 100644 --- a/examples/bitbucket.md +++ b/examples/bitbucket.md @@ -19,11 +19,3 @@ To view all additional flags see the [sample-conf.yaml](https://github.com/gabri ``` ghorg clone microsoft --scm=bitbucket --token= ``` - -## Hosted Bitbucket - -1. Clone a workspace on a hosted bitbucket instance using an app-password - - ``` - ghorg clone --scm=bitbucket --bitbucket-username= --token= --base-url=https:///v2 - ``` diff --git a/scripts/bitbucket_cloud_integration_tests.sh b/scripts/bitbucket_cloud_integration_tests.sh index f9ee85d..24bda98 100755 --- a/scripts/bitbucket_cloud_integration_tests.sh +++ b/scripts/bitbucket_cloud_integration_tests.sh @@ -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