Comments (4)
I don't have any experience with Bitbucket cloud, but I found some hints:
- According to https://community.atlassian.com/t5/Bitbucket-questions/Using-python-API-to-get-branch-restrictions-pullrequests/qaq-p/2072969 you have to use your username (not your email) + an app password (not your regular password) with enough priviliges. There are also links in the answer on how to create those.
- If that does not work, we might have to create the internal Bitbucket client instance differently. Looks like there is a special
Cloud
class: https://atlassian-python-api.readthedocs.io/index.html
from atlassian.bitbucket import Cloud
bitbucket = Cloud(
username=bitbucket_email,
password=bitbucket_password,
cloud=True)
We're currently using the Bitbucket
class:
Please let us know if hint 1 worked 😉
from gitopscli.
Hey @UrosCvijan
I think the API's are quite similar, you could try to set the URL to the cloud instance and try it out - we have not tested it yet.
from gitopscli.
Hi @christiansiegel ,
I will try. I think i even tried all the combinations but constantly was getting like permission denied error, if i have access or check if the repository exist. It was something like that.
I think there is some difference what is organization in bitbucket server, cloud etc..
I mean, you dont have to change it for this use case, it would be nice. I will also try to push that we move to github as noticed for a lot of things bitbucket cloud does not have support or those other things dont have support for bitbucket cloud.
Thank you for the great tool btw.. .
from gitopscli.
Hi @UrosCvijan ,
I played around with it: With the Bitbucket Cloud
client of atlassian-python-api I could get it to work. So what needs to be done is
- Upgrade
Line 13 in f351bc4
- Implement the GitRepoApi interface for Bitbucket cloud using the aforementioned
Cloud
client
I started on branch feat/bitbucket-cloud. I marked all the remaining TODO
s. Unfortunately I don't have much time these days. Anyone, feel free to take it from here..
from gitopscli.
Related Issues (20)
- State installation prerequesites in docs
- Why YAML? HOT 2
- Spec for Config HOT 2
- Allow password input via stdin or env variable HOT 1
- Can't change YAML values in an array HOT 3
- [deploy]: not respecting special characters HOT 3
- Fix CI HOT 2
- Error while parsing .gitops.config.yaml HOT 4
- Helm release name max length exceeded HOT 8
- Use recent version of code formatter HOT 1
- Support filters in YAML path HOT 3
- Develop with Microsoft Windows HOT 1
- Tests don't work with Python 3.10.7 HOT 1
- Gitlab merge labels and parameters HOT 2
- Provide additional author with parameter HOT 3
- Nested json inside yaml HOT 1
- Travis CI does not work anymore HOT 3
- Is it possible to add regular expressions to gitops deploy values? HOT 1
- Avoid clashes when working in parallel on the same repo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitopscli.