Thursday, July 28, 2016

This document explains how to setup Perforce version control further importing files under it and configuring the Perforce with Jenkins.

Introduction

This document let shows steps for basic configuration of Perforce and further configuring the build jobs under perforce 


Installing configuring Perforce (Client/Server)


for achieving it can follow the shown below video :


Configuring Perforce + Jenkins 

requirement



  1. go to the jenkins url (http://<<ipaddress>:<<portno>>/jenkins) login with credentials and choose the option new item further give the details like (item name,project type) and click save



  2. under next step we have to provide the below details under  source control details using these details Jenkins will pull out the source code from Perforce
    • P4PORT
    • Username
    • Password
    • Workspace

  3. Once version control details given correctly next we need to provide the build steps and build file details

  4. Once source code/build steps details are provide click on save/apply and come to Jenkins home page now it should you the created project name


  5. Click on the respective project now which required to be build on left side it will show all the project related action we can take for each project


  6.  if we now want to test the project we can click no BUILD NOW option and can see whether result in CONSOLE OUTPUT window provided under jenkins below screenshot showing under build progress its trying to create a war file using the ANT target CREATEWAR:


  7. Once the build is completed and if success it should show below kind-of message:

    cmd.exe /C '"ant.bat -file build.xml createwar && exit %%ERRORLEVEL%%"'
    
    Buildfile: C:\Users\Raghav\.jenkins\jobs\perforcebuild\workspace\arc\ARC 5.8.6\build.xml
    
    createwar:
    
    BUILD SUCCESSFUL
    Total time: 47 seconds
    
    Finished: SUCCESS


No comments:

Post a Comment