Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket get all remote branches for sphinx-multiversion

Simone Monteleone
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2022

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

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 10, 2022

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events