On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz <g...@unixarea.de> wrote:

> The jenkins server itself is requesting data from two servers in
> Internet:
>
> …
>
> The first I have no idea, where is this configured.
>

That's google.com, something set up long ago as an attempt to determine
whether there's any internet connectivity. See
https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateCenter.java#L1414
or
https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateSite.java#L437
(the amount of unused/legacy code in this area makes it difficult to tell
at a glance which is called) or an equivalent field in the JSON data
retrieved from updates.jenkins.io.


> The box is sitting in some data center and is not fully connected to
> Internet... How could those external request to Internet be switched off?
>

This looks like a bug. The setup wizard should identify that the requests
fail, and offer to configure a proxy, or let you skip plugin installation.
Do some of the requests pass? If so, it might be different from a basic "no
networking" situation in ways not anticipated.

That said, the setup wizard has fairly little value if Jenkins is offline.
You can bypass
<https://www.jenkins.io/doc/book/managing/system-properties/#jenkins-install-runsetupwizard>
it, but note that it'll start with authorization + authentication set so
that anonymous users are admins; so you'll want to customize things quickly
on startup, e.g. with an init.groovy
<https://www.jenkins.io/doc/book/managing/groovy-hook-scripts/#post-initialization-script-init-hook>
script, ideally before exposing the HTTP port to anyone other than
localhost.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMo7Pt%2BOftB1em-yS97Ngu7%3D9ak5dpiGr2jmabVmGphXx2ovAw%40mail.gmail.com.

Reply via email to