Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbolic link for "latest" for windows-stable in get.jenkins.io points to older release #3860

Open
sofiatajos opened this issue Dec 11, 2023 · 7 comments

Comments

@sofiatajos
Copy link

Problem with this page

https://get.jenkins.io/windows-stable/latest/

Expected behavior

https://get.jenkins.io/windows-stable/latest/ should point to latest LTS release.
As of writing this, LTS is 2.426.1.

Actual behavior

https://get.jenkins.io/windows-stable/latest/ points to version 2.222.1.

Possible solution

No response

@sofiatajos sofiatajos added the bug Something isn't working label Dec 11, 2023
@lemeurherve lemeurherve transferred this issue from jenkins-infra/jenkins.io Dec 11, 2023
@lemeurherve lemeurherve added get.jenkins.io and removed bug Something isn't working labels Dec 11, 2023
@lemeurherve
Copy link
Member

lemeurherve commented Dec 12, 2023

@sofiatajos where did you encountered this https://get.jenkins.io/windows-stable/latest/ link?

Looking at the "Download" page of jenkins.io, I can only go to https://get.jenkins.io/windows-stable/ (which correctly serves the last LTS version 2.426.1), I haven't found any trace of "latest" link.

@sofiatajos
Copy link
Author

Hi @lemeurherve, we have been using the jenkins.io repository (https://get.jenkins.io/war-stable/latest/jenkins.war) for an automatic build in order to always pull the latest WAR file, and wanted to do the same for the MSI installer.

To pull the latest Jenkins.msi installer, currently we can use https://get.jenkins.io/windows-stable/2.426.1/jenkins.msi. This can be seen from this link (https://www.jenkins.io/download/thank-you-downloading-windows-installer-stable/) after manually clicking on Windows from the Jenkins Download page.

I was thinking that expected behavior for latest for the MSI installer would be the same as the WAR file links, and found that https://get.jenkins.io/windows-stable/latest/ leads me to https://get.jenkins.io/windows-stable/jenkins-2.222.1.zip/.

With this https://get.jenkins.io/windows-stable/latest/jenkins.msi actually downloads version 2.222.1 of the msi installer.

Thanks!

@lemeurherve
Copy link
Member

Thanks @sofiatajos for these explanations.

This issue is the same as #3034.

It might be resolved by #3414. Putting this last help desk issue on our next infra milestone.

@lemeurherve
Copy link
Member

Meanwhile, I can propose you to construct your own "latest" download link by retrieving the last LTS version from https://updates.jenkins.io/stable/latestCore.txt

@sofiatajos
Copy link
Author

Hi @lemeurherve, I understand. We've already implemented your suggestion to get the link for the latest LTS version, but I just wanted to report this so it wouldn't be missed. Thanks!

@dduportal
Copy link
Contributor

Blocked by #3414

@dduportal
Copy link
Contributor

Update: as per jenkinsci/gradle-plugin#387, the proper way to get the latest WAR is to use the updates.jenkins.io webservice (which hosts the update center index but also provide custom logic to emit redirects to the latest version:

https://updates.jenkins.io/current/latest/jenkins.war redirects to https://updates.jenkins.io/download/war/2.440/jenkins.war (today: next week the version will be updated)

It does NOT work for other packages (MSI, deb, rpm, etc.) though.

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

No branches or pull requests

3 participants