Jenkins <4> Perforce Plugin

Jenkins has many plugins to communicate with source code management server. Like CVS, git, perforce etc. My company uses P4 as our source code repository. So let's see how Jenkins works with Perforce.

1. Install Perforce Plugin

2. In Jenkins-->System configuration --> Perforce


Add P4.exe paths (The perforce application installed path on each node)

 

3. In the job configuration page
   a. set the username/password of p4 server.
   b. set the View Map
   c. choose the p4 executable.
   d. Force sync options. (One time or always)
   d. Some other options that you need for your projects (Or leave them blank)

 

4. Set the trigger as Poll SCM

你可能感兴趣的:(Jenkins)