We are currently using Jenkins 2.345-alpine version as part of the docker container. Jenkins is giving issues with the configured Global Tools such as NodeJS, Docker, JAVA, etc. All the configured Global Tools setting is unharmed after the upgrade but Jenkins is giving the following errors from 2.346-alpine version and above.
Reference Errors faced while building the pipeline:
NodeJS :
$ /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/nodejs/bin/npm install -g npm install -g
env: 'node': No such file or directory
Docker:
/var/jenkins_home/workspace/docker@tmp/durable-507b78de/script.sh: line 1: docker: not found
JAVA:
/var/jenkins_home/tools/hudson.model.JDK/sonar-jdk11/bin/java: not found
I have tried upgrading the plugins but that doesn't seems to work. When I downgrade it back to 2.345-alphine it works fine.
I suspect the relevant change is jenkinsci/docker#1361, wherein glibc was removed from Alpine images. The tools you are trying to use require glibc. The only guarantee we make about the Docker images for the controller is that their configuration is sufficient to run Jenkins itself. In all likelihood you were relying on an internal implementation detail (the availability of glibc on the controller) in your jobs. That implementation detail was subject to change at any time, and it did change recently.
Your options are:
I am closing this ticket for three reasons: because it is filed in the wrong issue tracker, because it has no steps to reproduce the problem from scratch, because the reported issue goes against what we recommend in the documentation, and because it is likely you are relying on internal implementation details rather than a committed interface in the first place. The change to remove glibc from the Alpine images was intentional and we do not intend to change it.