简体   繁体   English

如何配置Jenkins指向我的VM Project和XML?

[英]How do I configure Jenkins to point to my VM Project and XML?

I have installed Jenkins in my virtual machine (CentOS) and managed to start the Jenkins through browser at port 8888 (custom). 我已经在虚拟机(CentOS)中安装了Jenkins,并设法通过浏览器的端口8888(自定义)启动了Jenkins。 Also in my VM I have installed PHP Code Sniffer to get the check style and save the errors and warnings in a XML file. 同样在我的VM中,我已经安装了PHP Code Sniffer以获取检查样式并将错误和警告保存在XML文件中。 Now I want to create a job in Jenkins to display the result of phpcs XML on my dashboard. 现在,我想在Jenkins中创建一个作业,以在仪表板上显示phpcs XML的结果。

The problem is, that when I create a job, the job is configured to checkout from a SVN repository, what I don't want because I switch between branches in my VM. 问题是,当我创建一个作业时,该作业被配置为从SVN存储库中检出我不想要的内容,因为我在VM中的各个分支之间切换。 I want the XML file to be used from the particular branch on my VM not SVN server. 我希望从我的VM而不是SVN服务器上的特定分支中使用XML文件。

Can someone help me to configure Jenkins to point to my VM Project and XML. 有人可以帮我配置Jenkins以指向我的VM Project和XML。

You can specify a custom workspace in your job configuration, so the job will 'work' in that directory. 您可以在作业配置中指定自定义工作空间,因此作业将在该目录中“工作”。 Therefore you have to check Advanced Project Options -> Use custom workspace and type in the path, where you have checked out your repository. 因此,您必须检查“ 高级项目选项”->“使用自定义工作区”,然后在检出存储库的路径中键入内容。
You should also set Source-Code-Management to None , since you want to manage your branches manually in your VM. 您还应该将Source-Code-Management设置None ,因为您想在VM中手动管理分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM