We use Expo-managed workflow for our apps. And we have been using pipelines to send OTA updates, which works really well.
We have s `postPublish` hook that uploads our source maps to sentry for better tracing the errors. But we are getting [10:11:14] Error uploading sourcemaps to Sentry: Could not find the SHA of the previous release in the git history. If you limit the clone depth, try to increase it. Otherwise, it means that the commit we are looking for was amended or squashed and cannot be retrieved. Use --ignore-missing flag to skip it and create a new release with the default commits count. error since the last few builds. We haven't changed anything in our pipeline so maybe something changed internally?
I asked about the issue in the Github repo here, but they refer to it as Sentry-specific or Bitbucket pipeline issue.
Hi @Lalit,
Just to give you some context, Pipelines builds run in Docker containers. For every step of your build, a Docker container starts using the image you have specified in your bitbucket-pipelines.yml file. The repo is cloned in that container, and then the commands of the step's script are executed. When the step finishes that Docker container gets destroyed.
Do the pipeline builds with this issue run on a branch definition? For Pipelines running on a branch, this specific branch is cloned with a default depth of 50 (the last 50 commits of this branch will get cloned).
Based on the error message you posted, it looks like a command in your build is trying to find an earlier commit that is not available in the clone. If your build needs all commits of this branch to be available, you can add the following in your bitbucket-pipelines.yml, either as a top-level configuration for all steps or to a single step (this way all the commits of the branch will get cloned):
clone:
depth: full
Documentation for reference:
Please feel free to let me know if this works for you and if you need anything further!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.