Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitbucket integration requires the use of the --bitbucket-url parameter #4219

Open
gilzow opened this issue Oct 7, 2024 · 0 comments
Open

Comments

@gilzow
Copy link
Collaborator

gilzow commented Oct 7, 2024

Where on docs.platform.sh should be changed?

https://docs.platform.sh/integrations/source/bitbucket.html#2-enable-the-server-integration
https://docs.upsun.com/integrations/source/bitbucket.html#2-enable-the-server-integration

What exactly should be updated?

Currently, under the Using the CLI tab, we have

platform integration:add \
  --project PROJECT_ID \
  --type bitbucket_server \
  --repository OWNER/REPOSITORY \
  --username BITBUCKET_USERNAME \
  --token BITBUCKET_SERVER_ACCESS_TOKEN \
  --base-url BITBUCKET_SERVER_URL 

But this produces the error:

The option --base-url cannot be used with the integration type bitbucket

CLI example needs to replace --base-url --base-url BITBUCKET_SERVER_URL with --bitbucket-url BITBUCKET_SERVER_URL

Additionally, the next section has:

For example, if your repository is located at https://example.com/platformsh/platformsh-docs, the command is similar to the following:

platform integration:add \
  --project abcdefgh1234567 \
  --type bitbucket_server \
  --repository platformsh/platformsh-docs \
  --username [email protected] \
  --token abc123

We need to either update the example URL to be https://bitbucket.org/platformsh/platformsh-docs
OR
update the sample code above to include the --bitbucket-url example.com parameter.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant