我已经在windows上安装了jenkins,我想使用jenkins命令从系统中的任何地方启动和停止程序。
结果是,在配置jenkins并创建环境变量之后,每次从外部C:\Program (x86)\Jenkins执行"jenkins“时,我都会得到下面的错误。
是否缺少任何配置?
误差
System.IO.FileNotFoundException: Unable to locate jenkins.xml file within executable directory or any parents
at winsw.ServiceDescriptor..ctor()
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)系统环境变量
JENKINS_HOME:
路径:
发布于 2021-02-24 15:22:39
您需要在您的jenkins.xml所在的位置运行jenkins安装jenkins.xml
1 rename winsw.exe to jenkins.exe
2 cd c:/...where is your jenkins.exe
3 run jenkins.exe install jenkins.xml (both files must be in the same directory)发布于 2022-06-08 21:44:27
在Windows 10中,配置文件(config.xml)的路径是: C:\ProgramData\Jenkins.jenkins
文件夹ProgramData是隐藏的,所以转到地址栏并键入或使用CLI。
https://stackoverflow.com/questions/59712598
复制相似问题