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(Stash) - Ignoring request since not configured to support Bitbucket Server #622

Closed
asksmruti opened this issue May 7, 2019 · 4 comments
Labels
provider/bitbucket question Further information is requested

Comments

@asksmruti
Copy link

I'm quite new to atlantis and here is my scenario:

Atlantis is running on openshift and integrated with bitbucket(stash) running in same network

While setting up the webhook on bitbucket it's complaining:
Ignoring request since not configured to support Bitbucket Server upon pull request

Not sure, if I am missing something. Also in bitbucket, under pull request - Activity when I put some comment for atlantis plan(like in github comment section) it's not working as well. Or it'll always automatically do plan upon merge/pull ?

@lkysow lkysow added the question Further information is requested label May 7, 2019
@lkysow
Copy link
Member

lkysow commented May 7, 2019

Hi, do you know the config you're running Atlantis with? Are you using the helm chart?

For bitbucket server, it's important that you run with the --bitbucket-base-url flag or the ATLANTIS_BITBUCKET_BASE_URL environment variable set to the url of your bitbucket server, ex. http://bitbucket.corp:7990/basepath. If this isn't set, then I think that would explain the error you're getting.

Since you're getting that error, that explains why you don't see Atlantis doing anything. I'd fix that error first.

@asksmruti
Copy link
Author

asksmruti commented May 7, 2019

Hi @lkysow, Thanks for your quick response.
I've deployed this on openshift by using the deployment template defined here "https://www.runatlantis.io/docs/deployment.html#deployment-manifest"

But you are correct, ATLANTIS_BITBUCKET_BASE_URL is not defined in the template.

It seems that issue got resolved. However atlantis plan is showing following error now.

running git clone --branch develop --depth=1 --single-branch https://smruti:<redacted>@bitbucket.com//scm/dp/terraform-test.git /home/atlantis/repos/DP/terraform-test/1/default: Cloning into '/home/atlantis/repos/DP/terraform-test/1/default'... fatal: repository 'https://smruti:<redacted>@bitbucket.com//scm/dp/terraform-test.git/' not found : exit status 128

Why is it appending the extra string /scm in the repository URL?
Also is it possible to clone with "ssh" instead of "https" by twisting some atlantis configuration?

@lkysow
Copy link
Member

lkysow commented May 7, 2019

Maybe remove the trailing / on your ATLANTIS_BITBUCKET_BASE_URL? I notice there's an extra one.

Why is it appending the extra string /scm in the repository URL?

That's required by bitbucket. That's the URL you need to clone.

Also is it possible to clone with "ssh" instead of "https" by twisting some atlantis configuration?

You might be able to do something like this #176 (comment) but switch the configs.

@lkysow
Copy link
Member

lkysow commented May 14, 2019

I'm going to close this now but please comment back if you still need help and I can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/bitbucket question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants