Skip to content

Commit

Permalink
Merge pull request #101 from linuxserver/beta-asset
Browse files Browse the repository at this point in the history
beta: check for assets in external trigger
  • Loading branch information
aptalca authored Sep 29, 2024
2 parents 2f28ac3 + a1853eb commit 06dd860
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jenkins-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ external_type: custom_json
release_type: prerelease
release_tag: beta
ls_branch: beta
custom_external_trigger: true
external_artifact_check: |
assets=$(curl -u "${{ '{{' }} secrets.CR_USER {{ '}}' }}:${{ '{{' }} secrets.CR_PAT {{ '}}' }}" -sX GET "https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/tags/${EXT_RELEASE}" | jq -r '.assets[].browser_download_url')
if grep -q "emby-server-deb_${EXT_RELEASE}_arm64.deb$" <<< "${assets}" && grep -q "emby-server-deb_${EXT_RELEASE}_amd64.deb$" <<< "${assets}"; then
artifacts_found="true"
else
artifacts_found="false"
fi
repo_vars:
- JSON_URL = 'https://api.github.com/repos/MediaBrowser/Emby.Releases/releases'
- JSON_PATH = 'first(.[] | select(.prerelease==true )) | .tag_name'
Expand Down

0 comments on commit 06dd860

Please sign in to comment.