I am trying to get the BitBucket pipeline to shallow clone my repository. My file looks like this:
When I look at the pipeline build log, the git clone command does not include "--depth 1". Have I got the YAML layout above wrong?
Hi @James Hume,
I believe you are facing some edge case or bug.
I was not able to reproduce this scenario.
When I browse the pipelines logs I see this in the first part of it:
Build setup (section)
+ umask 000
+ GIT_LFS_SKIP_SMUDGE=1 git clone --branch="master" --depth 1 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...
As you can see the "--depth 1" is there.
We'll probably need to create a ticket for you to allow us to investigate this case deeper and understand what is happening there.
Some questions to narrow down this one:
Hey @James Hume
I've opened a ticket in the Bitbucket Cloud support to allow us investigating this one deeply. We will need to check your repository to understand what is causing this issue. You should receive an email with the support ticket soon.
Once the issue is resolved, please share your findings here. This will allow other users to learn from your experience.
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events