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

Use absolute URLs for links from download indexes #810

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

daniel-beck
Copy link
Contributor

@daniel-beck daniel-beck added enhancement This is an enhancement for the tool or wrapper scripts, typically adding features. java This PR affects Java code and would need a new release to be effective labels Oct 17, 2024
@daniel-beck
Copy link
Contributor Author

Local test run with a tiny subset of plugins:

% cat latest/.htaccess
# GENERATED. DO NOT MODIFY.
RewriteEngine on
RewriteRule ^chroot\.hpi$ https://updates.jenkins.io/download/plugins/chroot/0.1.4/chroot.hpi [R=302,L]
RewriteRule ^gitee\.hpi$ https://updates.jenkins.io/download/plugins/gitee/1170.v3d4640b_34233/gitee.hpi [R=302,L]
% cat links/plugins/gitee/index.html | grep .hpi | head 
<li><a class="version" href='/latest/gitee.hpi'>permalink to the latest</a><div class="metadata">
<li id="1170.v3d4640b_34233"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1170.v3d4640b_34233/gitee.hpi'>1170.v3d4640b_34233</a><div class="metadata">
<li id="1165.vd01443918414"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1165.vd01443918414/gitee.hpi'>1165.vd01443918414</a><div class="metadata">
<li id="1164.v92b_911c15f28"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1164.v92b_911c15f28/gitee.hpi'>1164.v92b_911c15f28</a><div class="metadata">
<li id="1.2.7"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1.2.7/gitee.hpi'>1.2.7</a><div class="metadata">
<li id="1.2.6"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1.2.6/gitee.hpi'>1.2.6</a><div class="metadata">
<li id="1.2.5"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1.2.5/gitee.hpi'>1.2.5</a><div class="metadata">
<li id="1.2.4"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1.2.4/gitee.hpi'>1.2.4</a><div class="metadata">
<li id="1.2.3"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1.2.3/gitee.hpi'>1.2.3</a><div class="metadata">
<li id="1.2.2"><a class="version" href='https://updates.jenkins.io/download/plugins/gitee/1.2.2/gitee.hpi'>1.2.2</a><div class="metadata">

@dduportal dduportal merged commit 12d7644 into jenkins-infra:master Oct 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement for the tool or wrapper scripts, typically adding features. java This PR affects Java code and would need a new release to be effective
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Update Center] Fix HTTP/404 errors due to broken links in HTML listing pages and missing ?uctest endpoint
2 participants