Dear all,
I'd like to use the python plugin sphinx-multiversion from a bitbucket pipeline.
The pipeline see only the own branch. I need to fetch/pull all the remote branches to use the sphinx-multiversion plugin.
Could you please help me?
Thanks in advance.
SM
Hey Simone!
By default, pipelines will only perform a shallow clone of the repository with the current branch that you are executing the build on. This is to ensure that the build time is reduced as it does not need to clone the entire repository.
If you would like to perform a full clone with all branches included, you will need to add the following to the top of your bitbucket-pipelines.yml (above pipelines/default tag):
clone:
depth: full
More information regarding this can be found in the following article under the "clone" subheading:
https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/
Hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.