[英]How to provide path in jenkins
I have installed Jenkins
through the wars
file but now I have two JDK15
and JDK8
in the system...Can you please tell me how to run Jenkins
with JDK8
as it is automatically taking JDK15
.我已经通过
wars
文件安装了Jenkins
但现在我的系统中有两个JDK15
和JDK8
...你能告诉我如何使用JDK8
运行Jenkins
,因为它会自动JDK15
。
You can do that by setting up a Jenkins file where you can specify the java version for each job.您可以通过设置 Jenkins 文件来做到这一点,您可以在其中为每个作业指定 java 版本。 You can find more information on https://www.jenkins.io/doc/book/pipeline/jenkinsfile/
您可以找到有关https 的更多信息://www.jenkins.io/doc/book/pipeline/jenkinsfile/
you can try to switch Java version using this:您可以尝试使用以下命令切换 Java 版本:
sudo update-java-alternatives --set [JDK/JRE name eg java-8-oracle]
You can find more information here: https://askubuntu.com/questions/121654/how-to-set-default-java-version您可以在此处找到更多信息: https://askubuntu.com/questions/121654/how-to-set-default-java-version
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.