breez-sdk
breez-sdk copied to clipboard
Triggering Jitpack build is flaky
The job to trigger a Jitpack build is successful even though the Jitpack build fails
https://github.com/breez/breez-sdk/actions/runs/8237937194/job/22528030938
Run # Jitpack only makes artifacts avaiable when someone requests them.
# Jitpack only makes artifacts avaiable when someone requests them.
# Here we trick Jitpack into thinking we're already requesting the newly built package
# to make sure it is available right away for anyone that needs it later.
# We're waiting for at most 60s before triggering the Jitpack build to give our Maven repo
# some time to process the just uploaded files (the Jitpack build is dependent upon them being available).
# If anything fails here, we'll still finish sucessfully as this is an optional optimization.
timeout 60 bash -c 'while [[ "$(curl --output /dev/null --silent --head --write-out ''%{http_code}'' https://mvn.breez.technology/releases/breez_sdk/bindings-android/0.3.3/bindings-android-0.3.3.pom)" != "[2](https://github.com/breez/breez-sdk/actions/runs/8237937194/job/22528030938#step:8:2)00" ]]; do echo "Waiting for package to be published on mvn.breez.technology..." && sleep 5; done && echo "Package found."' || echo "Package not found." && true
echo "Attempting to trigger Jitpack build..."
curl -s -m [3](https://github.com/breez/breez-sdk/actions/runs/8237937194/job/22528030938#step:8:3)0 https://jitpack.io/api/builds/com.github.breez/breez-sdk/0.3.3 || true
echo "Done"
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Package found.
Attempting to trigger Jitpack build...
{
"message" : "",
"status" : "none"
}Done
Jitpack build log:
Build starting...
Error building