helpdesk icon indicating copy to clipboard operation
helpdesk copied to clipboard

https://updates.jenkins.io/stable/latest/jenkins.war returns 404

Open alextu opened this issue 8 months ago • 13 comments
trafficstars

Service(s)

Update center

Summary

Our tests get the latest LTS by querying https://updates.jenkins.io/stable/latest/jenkins.war, it's been returning 404 for several weeks.

Reproduction steps

➜  ~ curl -L -I https://updates.jenkins.io/stable/latest/jenkins.war
HTTP/2 302
date: Tue, 25 Feb 2025 10:10:54 GMT
content-type: text/html; charset=iso-8859-1
location: https://updates.jenkins.io/dynamic-stable-2.492.1/latest/jenkins.war
strict-transport-security: max-age=2592000; includeSubDomains; preload

HTTP/2 404
date: Tue, 25 Feb 2025 10:10:54 GMT
content-type: text/html; charset=iso-8859-1
vary: Accept-Encoding
strict-transport-security: max-age=2592000; includeSubDomains; preload

alextu avatar Feb 25 '25 10:02 alextu

Take a look at these similar issues to see if there isn't already a response to your problem:

  1. 95% #3927

github-actions[bot] avatar Feb 25 '25 10:02 github-actions[bot]

As far as I understand it, https://updates.jenkins.io/stable/latest/jenkins.war is not a documented location to obtain the most recent LTS release. We switched the Jenkins update center to use Cloudflare and as part of that change, some of the undocumented locations (like https://updates.jenkins.io/stable/latest/jenkins.war) are no longer providing that data.

You'll need to switch to use a documented location to obtain the most recent Jenkins LTS war file. The downloads page provides a link to the most recent Jenkins war file for LTS and for weekly. The Permalinks to latest files page provides a link to the most recent Jenkins war file for weekly.

The update center documentation says /stable/latestCore.txt is used by the jenkins-infra/jenkins.io build to determine the current LTS release. You can read the contents of that file to determine the version number and then form the download URL with the contents of that file.

MarkEWaite avatar Feb 25 '25 14:02 MarkEWaite

As far as I understand it, https://updates.jenkins.io/stable/latest/jenkins.war is not a documented location to obtain the most recent LTS release. We switched the Jenkins update center to use Cloudflare and as part of that change, some of the undocumented locations (like https://updates.jenkins.io/stable/latest/jenkins.war) are no longer providing that data.

You'll need to switch to use a documented location to obtain the most recent Jenkins LTS war file. The downloads page provides a link to the most recent Jenkins war file for LTS and for weekly. The Permalinks to latest files page provides a link to the most recent Jenkins war file for weekly.

The update center documentation says /stable/latestCore.txt is used by the jenkins-infra/jenkins.io build to determine the current LTS release. You can read the contents of that file to determine the version number and then form the download URL with the contents of that file.

yes, but it was fixed last time: https://github.com/jenkins-infra/helpdesk/issues/3927 ...

timja avatar Feb 25 '25 15:02 timja

yes, but it was fixed last time: https://github.com/jenkins-infra/helpdesk/issues/3927 ...

Indeed. Implementing this "alias" on the consumer side seemed more breakage-prone, isn't there a stable alias link to the latest LTS we can use? There is one for the latest release: https://updates.jenkins.io/latest/jenkins.war.

alextu avatar Feb 25 '25 16:02 alextu

Most places hardcore the version and then have a PR generated by the likes of renovate so you don’t get random broken builds when it updates

timja avatar Feb 25 '25 18:02 timja

Implementing this "alias" on the consumer side seemed more breakage-prone, isn't there a stable alias link to the latest LTS we can use? There is one for the latest release: https://updates.jenkins.io/latest/jenkins.war.

I'm not aware of an alias for the most recent LTS.

MarkEWaite avatar Mar 03 '25 16:03 MarkEWaite

I'm also experiencing this issue with a 404 after a redirect from https://updates.jenkins.io/stable/latest/jenkins.war takes me to https://updates.jenkins.io/dynamic-stable-2.492.1/latest/jenkins.war

mromero-convoso avatar Mar 11 '25 17:03 mromero-convoso

Most places hardcore the version and then have a PR generated by the likes of renovate so you don’t get random broken builds when it updates

I'm playing around this idea on a branch. Is the Renovate app installed on the jenkcinsci organization?

alextu avatar Apr 08 '25 11:04 alextu

Most places hardcore the version and then have a PR generated by the likes of renovate so you don’t get random broken builds when it updates

I'm playing around this idea on a branch. Is the Renovate app installed on the jenkcinsci organization?

Yes although not currently on all repositories, I've enabled it on the gradle-plugin one.

timja avatar Apr 08 '25 12:04 timja

This issue is still present - any update / progress here? the URL now redirects to https://updates.jenkins.io/dynamic-stable-2.504.1/latest/jenkins.war which 404's

mromero-convoso avatar May 27 '25 23:05 mromero-convoso

This issue is still present - any update / progress here? the URL now redirects to https://updates.jenkins.io/dynamic-stable-2.504.1/latest/jenkins.war which 404's

As far as I know, there is no plan to create a redirect from https://updates.jenkins.io/stable/latest/jenkins.war that points to the current LTS.

MarkEWaite avatar May 28 '25 00:05 MarkEWaite

This issue is still present - any update / progress here? the URL now redirects to https://updates.jenkins.io/dynamic-stable-2.504.1/latest/jenkins.war which 404's

No progress here, as it is really a low priority for the infra team (it has never been a feature, so we cannot put this in front of other major tasks). We do want to add it as a nice feature for users (like you) but we did not have had time on this (hence no status update on the issue).

We keep the issue in the milestone "infra-team-sync-next" which is our "reserve" of issues to look into once the top major things have been covered. It means it will be updated as soon as we'll have time to spend on it.

dduportal avatar May 28 '25 06:05 dduportal

Most places hardcore the version and then have a PR generated by the likes of renovate so you don’t get random broken builds when it updates

I'm playing around this idea on a branch. Is the Renovate app installed on the jenkcinsci organization?

Yes although not currently on all repositories, I've enabled it on the gradle-plugin one.

FWIW, this renovate conf seems to work fine for us:

https://github.com/jenkinsci/gradle-plugin/blob/master/.github/renovate.json#L16-L51

alextu avatar Jun 10 '25 13:06 alextu