Determine latest available version without downloading the whole distribution #3209
Johan Stuyts opened 12 hours ago

OneDev is very easy to upgrade. Thanks for that.

Currently I manually upgrade based on the announced releases in the RSS feed. It is not a lot of work, but I would like to automate it. It will also ensure that important fixes don't get applied too late.

Suppose I want to run a job every 6 hours. I really do not want to waste bandwidth just to find out that the latest version is (still) equal to the installed version. Is there a URL that returns machine-readable data with the latest version? If not, can this be added.

Thanks in advance.

  • Robin Shen commented 9 hours ago

    Please below query:

    curl -fsSG 'https://code.onedev.io/~api/builds' \
      --data-urlencode 'query="Project" is "onedev/server" and "Job" is "Release" and successful order by "Finish Date" desc' \
      --data-urlencode 'offset=0' \
      --data-urlencode 'count=1' |
      jq -r '.[0].version'
    
1/1
Type
Enhancement
Priority
Minor
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-3209
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover