Refer to the following article
I started Jenkins on Docker and tried
echo 'Hello world' but
The following error will appear:
The plug-in was installed from the UI with Suggested Plugins and
I don't use plugins.txt.
I understand that Java does not have a class, but
I don't know the specific solution.
If you know how to solve this problem, could you tell me?
Error Description:java docker jenkins
Please tell me the actual Dockerfile you used.
Do you use
jenkinsci/jenkins:2.11 for the base image as per the reference article?
You say you don't use plugin.txt, but please show me the specific differences.
jenkinsci/jenkins is already Maintenance is finished and
Taking advantage of the new image called
jenkins/jenkins is recommended.
Also, the 2.11 version is old and inconsistent with the plug-in you installed.
I suspect that the above error occurred.
Try the latest stable version of
jenkins/jenkins:lts as your base image.
If using the latest stable image does not solve this problem, click
How exactly did you create your Jenkins project and run
echo 'Hello World'?
If you write it down, you will be able to comment.
© 2022 OneMinuteCode. All rights reserved.