Integrate BitBucket Private Repository with Gitbook Private Book - gitbook

I want to integrate my private bitbucket repository with gitbook private book.
Anyone could suggest a way to do so?
Thanks in advance.

Step 1:
You can first create a repository in Bitbucket. Once you have that done you need to check the "Get started with command line", if you have to initialize a new project or you would like to use your existing project. Keep the commands from that handy because for the next step you would be using it.
Step 2 :
Now you have to go to the gitbook directory. In Linux it is normally at
/home/<username>/GitBook/Library/Import. In this directory go into the book which you would like to push to bitbucket. (Please check for Windows)
Run the commands from Step 1. Your Bitbucket repo should be populated.

Related

Can we use a global deployment/user key in CircleCI (context of private dependencies directly on github)?

Every time I add a new project/repo to CircleCI, I have to perform the following steps to give it Git permissions
Settings > Checkout SSH keys > Create and push user key
This will create a new key for the GH user and then if the repo has a dependency that is directly pulling from a private git repository (using git+ssh://...), it will work.
What I would like to do is add a global deployment/user key once so that whenever I enable a new project I don't need to create a new SSH key.
Is this possible with CircleCI?
My project is using node.js, if that helps.
disclaimer: I'm a CircleCI Developer Advocate
This is not possible. I would suggest adding a feature request.
To be honest, StackOverflow isn't the best place for this type of question. CircleCI Discuss is a much better place.

How to automate pushing of code from local repository to remote bitbucket repository?

We have job that automatically generates a java code and pushes to a local repository in linux.
I need to find a solution on how to push the newly created java code from local repo to bitbucket repo automatically.
Each time the java code is generated, it will be with different folder name.
May it help you if you use branches?
You could create branches automatically and push them into bitbucket.

Node.js update via GitHub

So I am currently using node.js to make a Discord bot. I am switching the way things work however. The bot runs from my machine (computer), but I would like my friends to be able to work on it as well. Is there any way we can clone a GitHub repo into an existing folder, as to update the current BOT.js file we have?
The point of this is to have the bot auto update via github
You can create an empty Github repository, make sure to create it without any readme etc before you have made your first push.
Then using git, you initialize a git repo inside your current folder you are working out of, when you have done that, you can set a upstream to Github (w/ the repository URL you got for your newly created repository (on Github)), then just commit your files, push them to the Github repo master branch and you should be good to go.
Hope that helps!

Bitbucket Pipelines access other node repository

I have enabled Bitbucket Pipelines in one of my node.js repositories to have it run the build on every commit. My repository depends on another node.js repository. For development I've linked the one to the other using npm link.
I've tried a git clone of that repository that is specified in the bitbucket-pipelines.yml file, but the build gets stuck on that command. I guess it's because git is asking for authentication at that point.
Is there a way to allow the container to access other repositories in the same team? Or is there a better way altogether on how to solve this? I'd also be fine with switching to another CI tool if Bitbucket Pipelines aren't capable of this – the only requirement is that it's free for teams < 5 people.
Btw. I'd like to avoid paying for npm private packages if possible.
Thanks!
You can organize access by ssh key for another repo like described in official docs https://confluence.atlassian.com/bitbucket/access-remote-hosts-via-ssh-847452940.html

Pushes to Openshift project repo don't appear in private Gitlab repo

I have searched for this a lot but I didn't find the solution I want.
I have one private repository on gitlab with flask microframework and I want to put that on openshift. I have followed this link, then I changed the files structure to work good for openshift and everything was going good. But then I realized that any commit/push I do on openshift repo is not appearing on gitlab repo. Any solution? Or what is the useful workflow for this?
This is because they are two different repository and you should push to both

Resources