如何在詹金斯的类路径中使用一组jar文件 [英] How to use a set of jar files in classpath in Jenkins
问题描述
如何使其成为可能?
我有一组jar文件,这些文件将包含在CLASSPATH变量中.
I had a set of jar files which are to be included to CLASSPATH variable.
我不想在构建步骤中给出命令SET CLASSPATH=xxx.jar;xx.jar;..
.
I don't want to give the command SET CLASSPATH=xxx.jar;xx.jar;..
as part of the build step.
我不想手动将环境变量CLASSPATH设置为系统属性的一部分.
I dont' want to manually set the Environment variable CLASSPATH as part of system properties.
我尝试通过将一组jar文件复制到Jenkins_HOME/war/WEB-INF/lib
中,并启动了Jenkins服务器.但是无法实现……任何解决方案?
I tried by copying a set of jar files into Jenkins_HOME/war/WEB-INF/lib
and had started the Jenkins server. But couldn't make it possible... Any Solution ?
推荐答案
按如下所示设置CLASSPATH环境,并将任何jar文件更新到特定目录
Set CLASSPATH environment as follows and any jar file updated it particular directory
SET CLASSPATH = <your_lib_directory>\*
SET CLASSPATH=<your_lib_directory>\*
这将获取所有更新的JAR文件
This will pick up all the updated JAR files
这篇关于如何在詹金斯的类路径中使用一组jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!