Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggering Jitpack build is flaky #851

Open
dangeross opened this issue Mar 12, 2024 · 0 comments
Open

Triggering Jitpack build is flaky #851

dangeross opened this issue Mar 12, 2024 · 0 comments
Labels
ci CI related issues

Comments

@dangeross
Copy link
Collaborator

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
@dangeross dangeross added the ci CI related issues label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci CI related issues
Projects
None yet
Development

No branches or pull requests

1 participant