Jump to content


Perforce plugin for Jenkins with shelve support

jenkins CI build

  • Please log in to reply
2 replies to this topic

#1 Rakhee

Rakhee

    Member

  • Members
  • PipPip
  • 14 posts

Posted 17 October 2014 - 11:15 PM

Hi Perforce support,

I would like to explore the p4 shelve support in Jenkins. I used the p4 plugin 2 years back and it only supported post CI builds. Is there new support for p4 shelve in Jenkins for pre-commit builds. I am particularly interested in SCM polling as it will help me optimize the build times.

Regards,
Rakhee

#2 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 21 October 2014 - 10:47 PM

Hi Rakhee,

The Jenkins plugin is developed by a third party and not Perforce. However, looking at their website, there appears to be some details regarding a 'Shelve Project Plugin':

  https://wiki.jenkins...ryString=shelve

I hope this helps.

#3 P4Paul

P4Paul

    Newbie

  • Staff
  • 7 posts

Posted 22 October 2014 - 11:18 AM

Hi Rakhee,

The may be some confusion as there are two Jenkins plugins: the 'perforce-plugin', which as Shimada points out is a third party plugin, and a new Perforce supported plugin 'p4-plugin', which supports shelves.

https://wiki.jenkins...NKINS/P4 Plugin


You can use both plugins at the same time, but the new 'p4-plugin' takes a very different approach.  It uses credentials for the Perforce configuration and a smarter way of syncing workspaces.  

Please refer to the Markdown file here and jobs and issues page here.  

The SCM polling only looks at submitted changes, but you can invoke a build from a shelf using the 'review/' endpoint.

Kind regards,
Paul





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users