Skip to content

Commit

Permalink
Add external_artifact_check
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Nov 19, 2024
1 parent cacfb1e commit 1f7d330
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/external_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ jobs:
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
exit 0
else
BLENDER_FOLDER=$(echo "Blender${EXT_RELEASE}" | sed -r 's|(Blender[0-9]*\.[0-9]*)\.[0-9]*|\1|')
ASSETS=$(curl -o /dev/null -sI -w "%{http_code}\n" "https://mirror.clarkson.edu/blender/release/${BLENDER_FOLDER}/blender-${EXT_RELEASE}-linux-x64.tar.xz")
if [ ${ASSETS} == "200" ]; then
artifacts_found="true"
else
artifacts_found="false"
fi
if [[ "${artifacts_found}" == "false" ]]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY
Expand Down
9 changes: 8 additions & 1 deletion jenkins-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ custom_version_command: "curl -s https://projects.blender.org/api/v1/repos/blend
release_type: stable
release_tag: latest
ls_branch: master
build_armhf: false
external_artifact_check: |
BLENDER_FOLDER=$(echo "Blender${EXT_RELEASE}" | sed -r 's|(Blender[0-9]*\.[0-9]*)\.[0-9]*|\1|')
ASSETS=$(curl -o /dev/null -sI -w "%{http_code}\n" "https://mirror.clarkson.edu/blender/release/${BLENDER_FOLDER}/blender-${EXT_RELEASE}-linux-x64.tar.xz")
if [ ${ASSETS} == "200" ]; then
artifacts_found="true"
else
artifacts_found="false"
fi
repo_vars:
- BUILD_VERSION_ARG = 'BLENDER_VERSION'
- LS_USER = 'linuxserver'
Expand Down

0 comments on commit 1f7d330

Please sign in to comment.