The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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)

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events