How to get programatically the version number designated as the current LTS release of Jenkins, one of a list of weekly release numbers?
The Jenkins download page has text to indicate the current version designated as LTS (e.g., 2.46.2). To download the current Jenkins LTS release binary for Ubuntu, there are two choices:
I am looking for a means of programatically getting the version number, so that it can be used to:
I am hoping there is a single file that contains the authoritative version value somewhere on the Jenkins.io site, that can be queried via cURL or some such.
The jenkins update center [1] provides the latest release numbers
So, a simple curl -Ls https://updates.jenkins.io/stable/latestCore.txt
should do the trick of retrieving the latest LTS version number.