简体   繁体   中英

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). 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. Now I want to create a job in Jenkins to display the result of phpcs XML on my dashboard.

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. I want the XML file to be used from the particular branch on my VM not SVN server.

Can someone help me to configure Jenkins to point to my VM Project and 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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