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

posted on 2015-07-24 16:02  漂浮的心  阅读(769)  评论(0编辑  收藏  举报