Skip to content

Commit 784e1ad

Browse files
authored
fix: improve curl options in custom_version_command
- Add --fail, --silent, --show-error, --location flags to curl command - Add // empty fallback to prevent null values when JSON doesn't have version This improves error handling when fetching the latest Lidarr version. No changes to auto-generated files (Jenkinsfile, README.md).
1 parent 8e1bcd5 commit 784e1ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jenkins-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# jenkins variables
33
project_name: docker-lidarr
44
external_type: na
5-
custom_version_command: curl -sL "https://lidarr.servarr.com/v1/update/master/changes?runtime=netcore%26os=linuxmusl" | jq -r '.[0].version'
5+
custom_version_command: curl --fail --silent --show-error --location "https://lidarr.servarr.com/v1/update/master/changes?runtime=netcore%26os=linuxmusl" | jq -r '.[0].version // empty'
66
release_type: stable
77
release_tag: latest
88
ls_branch: master

0 commit comments

Comments
 (0)