Skip to content

fix: improve curl options in custom_version_command#129

Open
ford22 wants to merge 1 commit into
linuxserver:masterfrom
ford22:patch-1
Open

fix: improve curl options in custom_version_command#129
ford22 wants to merge 1 commit into
linuxserver:masterfrom
ford22:patch-1

Conversation

@ford22
Copy link
Copy Markdown

@ford22 ford22 commented May 24, 2026

  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Improve the curl command in custom_version_command by adding proper error handling flags.

Changes:

  • Add --fail - return error on HTTP failure
  • Add --silent - no progress meter
  • Add --show-error - show error with --silent
  • Add --location - follow redirects
  • Add // empty fallback - prevent null values

Benefits of this PR and context:

  • Prevents silent failures when curl encounters HTTP errors
  • Makes the build more robust and debuggable
  • No functional change to the resulting version output

How Has This Been Tested?

  • ✅ YAML syntax validated
  • ✅ Command works locally (returns correct version 3.1.0.4875)
  • ✅ No changes to auto-generated files (Jenkinsfile, README.md)

Source / References:

- 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).
@ford22
Copy link
Copy Markdown
Author

ford22 commented May 24, 2026

@Roxedus This PR replaces #128. It contains only the change to jenkins-vars.yml – no changes to auto-generated files.

I apologize for the earlier mistake. Thank you for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants