mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* [web] move sentry upload into a Makefile target * [web] fix typos in jenkins pipeline * [web] fix BRANCH_NAME for PR builds This is currently "true". Just use PR-xxx for now. * [web] remove explicit pull of main-deps for Jenkins In Jenkins we do not need to wait for the cloud-builder image. The docker build can start right away. Let docker validate the remote cache and pull it if needed. * [packer] jenkins-worker: prefetch sentry image * [packer] jenkins-worker: switch to production AR * [packer] jenkins-worker: wait for monorepo setup before pulling sentry * [web] cloudbuild: fix directory for prefetch_sentry GitOrigin-RevId: ec394bbf51efd516f0ade8813014dec9b63fb732
23 lines
556 B
Bash
Executable File
23 lines
556 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "BRANCH_NAME=$BRANCH_NAME"
|
|
echo "SENTRY_RELEASE=$SENTRY_RELEASE"
|
|
|
|
if [[ "$BRANCH_NAME" == "main" ]]; then
|
|
rm -rf sentry_upload
|
|
mkdir sentry_upload
|
|
tar --directory sentry_upload -xf build.tar
|
|
cd sentry_upload/public
|
|
|
|
sentry-cli releases new "$SENTRY_RELEASE"
|
|
sentry-cli releases set-commits --auto "$SENTRY_RELEASE"
|
|
sentry-cli sourcemaps upload --release="$SENTRY_RELEASE" .
|
|
sentry-cli releases finalize "$SENTRY_RELEASE"
|
|
|
|
cd ../..
|
|
rm -rf sentry_upload
|
|
else
|
|
echo "Not on main branch. Skipping sentry upload."
|
|
fi
|