Skip to content

Commit 916f95c

Browse files
authored
Merge pull request #7 from linuxserver/artifact_check
check for artifacts before triggering build
2 parents dbec166 + f82b655 commit 916f95c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/external_trigger.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ jobs:
107107
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
108108
exit 0
109109
else
110+
if curl -fL "http://deb.debian.org/debian/pool/main/q/qemu/qemu-user_${EXT_RELEASE}_amd64.deb" >/dev/null && curl -fL "http://deb.debian.org/debian/pool/main/q/qemu/qemu-user_${EXT_RELEASE}_arm64.deb" >/dev/null; then
111+
artifacts_found="true"
112+
else
113+
artifacts_found="false"
114+
fi
110115
if [[ "${artifacts_found}" == "false" ]]; then
111116
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
112117
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY

jenkins-vars.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ custom_version_command: "curl -sX GET https://deb.debian.org/debian/dists/bookwo
77
release_type: stable
88
release_tag: latest
99
ls_branch: master
10+
external_artifact_check: |
11+
if curl -fL "http://deb.debian.org/debian/pool/main/q/qemu/qemu-user_${EXT_RELEASE}_amd64.deb" >/dev/null && curl -fL "http://deb.debian.org/debian/pool/main/q/qemu/qemu-user_${EXT_RELEASE}_arm64.deb" >/dev/null; then
12+
artifacts_found="true"
13+
else
14+
artifacts_found="false"
15+
fi
1016
repo_vars:
1117
- BUILD_VERSION_ARG = 'QEMU_VERSION'
1218
- LS_USER = 'linuxserver'

0 commit comments

Comments
 (0)