About

New Jenkins plugin to support Perforce and Swarm.
  • 18
    Members
  • 17
    Followers
  • 3
    Branches
Owners
charusheela_b (charusheela_b)matthew_smeeth (matthew_smeeth)pallen (pallen)paul_allen (Paul Allen)perforce_software (perforce_software)
skumar (Sandeep Kumar)
Moderators
karl_wirth (Karl Wirth)mjoubert (mjoubert)pallen (pallen)paul_allen (Paul Allen)
Members
adrian_waters (adrian_waters)archita_jindal (Archita Jindal)charusheela_b (charusheela_b)dantran (dantran)gronk (gronk)
joel_brown (Joel Brown)karl_wirth (Karl Wirth)mark_foundry (mark_foundry)matthew_smeeth (matthew_smeeth)mjoubert (mjoubert)
nick_poole (Nick Poole)okano (okano)pallen (pallen)paul_allen (Paul Allen)perforce_software (perforce_software)
phopkins (phopkins)rhummer (rhummer)skumar (Sandeep Kumar)
Followers
Paul (Paul)Tsaukpaetra (Tsaukpaetra)aditya (aditya)callmewilko (callmewilko)chunglam (chunglam)
douglasawh (Doug Whitfield)marc_wensauer (Marc Wensauer)mrose (mrose)mtorkington (mtorkington)nakagawat (nakagawat)
nordstad (nordstad)reg_smith (reg_smith)russell_jackson (Russell C. Jackson (Rusty))stephkyle (stephkyle)sven_erik_knop (Sven Erik Knop)
thebamaman (thebamaman)wolfmann (wolfmann)
Branches
  • Main
  • Dev
  • R1.0

P4 Plugin

Jenkins Version Helix Core Helix Swarm

Jenkins plugin for a Perforce Helix Core Server (P4D).

Contents

  • Release notes
  • FreeStyle setup guide
  • Pipeline setup guide
  • Pipeline libraries
  • MultiBranch guide
  • Building Jobs
  • Post Build Actions
  • Snippet Generator Sample Steps
  • Notes page
  • Jenkins page

Requirements

  • Jenkins 2.462.3 or greater.
  • Helix Core Server 2020.1 or greater.
  • Minimum Perforce Protection of open for the Jenkins user.
  • Review Build feature requires Helix Swarm 2022.1 or greater.

Known Limitations

  • One Jenkins job per Helix Swarm branch.
  • Helix 'Build Farm' servers are not supported, they were superseded by Helix Commit-Edge servers back in 2013.2
  • The change summary for a concurrent build may report additional changes if that build is already in progress, JENKINS-57901.

Installation

  1. Open Jenkins in a browser; for example http://jenkins_host:8080
  2. Browse to Manage Jenkins, Manage Plugins, and select the Available tab.
  3. Find the P4 plugin or use the Filter if needed
  4. Select the check box and click the Install without restart button

If you are unable to find the plugin, you may need to refresh the 'Update Site'.

  1. Select the Advanced tab (under Manage Plugins).
  2. Click the Check now button at the bottom of the page.
  3. When Done go back to the update centre and try again.

Building

To build the plugin and run the tests use the following:

mvn package

Note: for the tests to run you must have p4d in your PATH, to skip tests use the -DskipTests flag.

The latest SNAPSHOT builds are available here.

Manual install

  1. Open Jenkins in a browser; for example http://jenkins_host:8080
  2. Browse to Manage Jenkins, Manage Plugins, and select the Advanced tab.
  3. Click the Browse button in the Upload Plugin section.
  4. Find the location of the p4.hpi file and click the Open button.
  5. Click the Download now and install after restart button (this might be different on the newer version).