Skip to content

Conversation

@hainenber
Copy link

Testing

Here's the generated index.html once run make publish.

Details
<title>Debian Jenkins Packages</title>


<link href='https://www.jenkins.io/sites/default/files/jenkins_favicon.ico' rel='shortcut icon' type='image/x-icon'/>

<link rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
  integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
  crossorigin="anonymous">

<script
  src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"
  integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU="
  crossorigin="anonymous"></script>

<script
  src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
  integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
  crossorigin="anonymous"></script>

<style type="text/css">
  dl {
    padding: 0;
  }

  dl dt {
    padding: 0;
    margin-top: 1em;
    font-size: 1em;
    font-style: italic;
    font-weight: bold;
  }

  dl dd {
    padding: 0 1em;
    margin-bottom: 1em;
  }
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/polyfill-support.js"></script> <script src="https://cdn.jsdelivr.net/npm/@webcomponents/[email protected]/webcomponents-loader.js"></script> <script data="jio" src="https://cdn.jsdelivr.net/npm/@jenkinsci/jenkins-io-components/+esm" type="module"></script> <script data="jio" nomodule="" src="https://cdn.jsdelivr.net/npm/@jenkinsci/jenkins-io-components/"></script>

Jenkins Debian Packages

This is the Debian package repository of Jenkins to automate installation and upgrade.

To use this repository, first add the key to your system:

    
  curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \
    /usr/share/keyrings/jenkins-keyring.asc > /dev/null
  

Then add a Jenkins apt repository entry:

    
  echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
    https://pkg.jenkins.io/debian binary/ | sudo tee \
    /etc/apt/sources.list.d/jenkins.list > /dev/null
  

Update your local package index, then finally install Jenkins:

   
  sudo apt-get update
  sudo apt-get install fontconfig openjdk-17-jre
  sudo apt-get install jenkins
   
  

The apt packages were signed using this key:

pub   rsa4096 2022-03-03 [SC]
      D91D3E00200107E4219524DD42715B56E211B042
uid                      Bogus Test (This is test only key) 
sub   rsa4096 2022-03-03 [E]
        <p>
          You will need to explicitly install a supported Java runtime environment (JRE), either from your distribution
          (as described above) or another Java vendor (e.g., <a href="https://adoptium.net/">Adoptium</a>).
        </p>

        <h2>
          Weekly Release Line
        </h2>

        <p>
          Supported Java versions for the weekly release line are:
        </p>

        <dl>
          <dt>2.419 (August 2023) and newer</dt>
          <dd>Java 11, Java 17, or Java 21</dd>

          <dt>2.357 (June 2022) and newer</dt>
          <dd>Java 11 or Java 17</dd>

          <dt>2.164 (February 2019) and newer</dt>
          <dd>Java 8 or Java 11</dd>

          <dt>2.54 (April 2017) and newer</dt>
          <dd>Java 8</dd>

          <dt>1.612 (May 2015) and newer</dt>
          <dd>Java 7</dd>
        </dl>

        <h2>
          <a href="https://www.jenkins.io/download/lts/">Long Term Support (LTS)</a> Release Line
        </h2>

        <p>
          Supported Java versions for the LTS release line are:
        </p>

        <dl>
          <dt>2.361.1 (September 2022) and newer</dt>
          <dd>Java 11 or Java 17</dd>

          <dt>2.346.1 (June 2022) and newer</dt>
          <dd>Java 8, Java 11, or Java 17</dd>

          <dt>2.164.1 (March 2019) and newer</dt>
          <dd>Java 8 or Java 11</dd>

          <dt>2.60.1 (June 2017) and newer</dt>
          <dd>Java 8</dd>

          <dt>1.625.1 (October 2015) and newer</dt>
          <dd>Java 7</dd>
        </dl>
      

      <p>
        See <a href="https://www.jenkins.io/doc/book/installing/">the installation guide</a> for more information, including how Jenkins is run and where the configuration is stored, etc.
      </p>
    </div>
  </div>
</div>
<script> $(function() { $('.hostname').html($(location).attr('origin')); }); </script>
  </div>
</div>

The page immediately redirects to https://www.jenkins.io/doc/book/installing/linux/, can be locally reproduced as well

Implements #415

### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

@hainenber hainenber requested a review from a team as a code owner September 7, 2023 16:05
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the other content on the page being retained if it will not be readable after the redirect?

@hainenber
Copy link
Author

I decided to leave the remaining content as is to ensure the HTML templating scripts/functions wouldn't break. At the moment, I'm not well versed to the codebase so I'd like to add incremental change before understanding it further to remove the HTML templating apparatus and subsequently, the page's contents.

@basil
Copy link
Member

basil commented Sep 8, 2023

The content should be removed at the same time that the redirect is being introduced. As-is, this PR is not ready for merge.

@hainenber
Copy link
Author

I've pushed new commits to clean up unused content as redirection is added.

This is the index.html generated by make war.publish

<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="refresh" content="1; url='https://www.jenkins.io/doc/book/installing/war-file/'" />
</head>

<h1>You are getting redirected to https://www.jenkins.io/doc/book/installing/war-file/</h1>

It'll redirect to aforementioned link afterwards. For other installation platform, here are their respective redirection URL:

Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this migration losing information? I don't see any references to tzdata-java on https://www.jenkins.io/doc/book/installing/linux/, but I see them (deleted) in this PR.

@MarkEWaite
Copy link
Contributor

Is this migration losing information? I don't see any references to tzdata-java on https://www.jenkins.io/doc/book/installing/linux/, but I see them (deleted) in this PR.

I checked with Rocky Linux 8 using the installation instructions from https://www.jenkins.io/doc/book/installing/linux/#red-hat-centos and when I enter the command sudo yum install java-17-openjdk, one of the dependencies that is listed to be installed is tzdata-java. I believe the removal of the tzdata-java reference is safe.

I haven't checked Rocky Linux 9, but I assume that if tzdata-java is an openjdk-17 dependency on RHEL 8 it will also be one on RHEL 9.

@basil
Copy link
Member

basil commented Sep 29, 2023

It had to be updated to get the automated tests to pass in #418 and #420. I wouldn't consider its removal safe until it is removed from the automated tests.

@MarkEWaite
Copy link
Contributor

It had to be updated to get the automated tests to pass in #418 and #420. I wouldn't consider its removal safe until it is removed from the automated tests.

Super. I'll submit an update to the installation document in the user guide so that the user guide includes that information.

<pre class="text-white bg-dark">
<code>
sudo apt-get update
sudo apt-get install fontconfig openjdk-17-jre
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the reference to fontconfig on https://www.jenkins.io/doc/book/installing/linux?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that. Added to the Debian documentation in jenkins-infra/jenkins.io#6721


<pre class="text-white bg-dark">

sudo zypper addrepo -f {{web_url}}/ {{artifactName}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the reference to zypper on https://www.jenkins.io/doc/book/installing/linux?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will need a larger addition to the installation section of the documentation. There isn't a section for openSUSE installation yet. I'll need to check with @kmartens27 to see if he's available to work on an openSUSE section for the documentation.


<pre class="text-white bg-dark">

yum install fontconfig java-17-openjdk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the reference to fontconfig on https://www.jenkins.io/doc/book/installing/linux?

Comment on lines -25 to -38
<dt>2.419 (August 2023) and newer</dt>
<dd>Java 11, Java 17, or Java 21</dd>

<dt>2.357 (June 2022) and newer</dt>
<dd>Java 11 or Java 17</dd>

<dt>2.164 (February 2019) and newer</dt>
<dd>Java 8 or Java 11</dd>

<dt>2.54 (April 2017) and newer</dt>
<dd>Java 8</dd>

<dt>1.612 (May 2015) and newer</dt>
<dd>Java 7</dd>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@lemeurherveCB lemeurherveCB Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIU, removing those lines here and in templates/index.html will result in pages without the <jio> footer.

@dduportal
Copy link
Collaborator

Is this PR still wanted?

If yes, since jenkins-infra/helpdesk#3705 is almost finished, I suggest that we introduce an infrastructure side redirection in the web service pkg.origin.jenkins.io. It would mean:

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants