Uploaded image for project: 'OpenShift Jenkins'
  1. OpenShift Jenkins
  2. JKNS-382

jenkins master uses the Kind:route elements .spec.host to calculate JENKINS_URL which is used as callback url

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.13
    • jenkins-server
    • None
    • False
    • None
    • False

      Description of problem:

      There is currently an issue in the Docker image (Jenkins master) jenkins-rhel8:v4.13.0-1698293442

      Jenkins master from said image uses the route Kinds .spec.host to calculate the value for the variable{{ JENKINS_URL. }}This has the following consequences:

      • when specifying subdomain to create a route to Jenkins, it makes the return URL from Jenkins wrong (null)
      • jenkins master uses the Kind:route elements .spec.host to calculate JENKINS_URL which is used as callback URL.

       

      A workaround consists in modifying the file /usr/libexec/s2i/run in Jenkins master image as follows:

      sed -i 's/ .spec.host / .status.ingress[].host /g' /usr/libexec/s2i/run

      Would be good to have this change (or an equivalent one) evaluated and incorporated in a newer version of the image.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       # <steps>

       

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

            Unassigned Unassigned
            fminafra-redhat Francesco Minafra
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: