Download presentation
Presentation is loading. Please wait.
1
Perforce Birds of a Feather
An introduction to the ‘P4’ Plugin and update on the latest features. Paul Allen – Perforce Software
2
Polling, triggers and reviews P4 Groovy
Introduction The Perfect Monorepo P4 plugin Getting started Workspace management Polling, triggers and reviews P4 Groovy
3
The Perfect Monorepo What is a Monorepo?
© 2016 CloudBees, Inc. All Rights Reserved
4
One Repo The Monorepo One Repo to rule them all, One Repo to find them, One Repo to bring them all and in the server bind them. © 2016 CloudBees, Inc. All Rights Reserved
5
The Monorepo Store all sources, projects and sub projects;
even artifacts, tooling, docs and test reports... All in one place, but accessible everywhere
6
SourceTime Build a view across source and time Reproduce any source at any point in time
7
Global Access Fast access across the global Fine grain protections
8
Perforce plugin support for Jenkins
P4 Plugin Perforce plugin support for Jenkins © 2016 CloudBees, Inc. All Rights Reserved
9
Community ‘Perforce’ plugin Perforce Supported ‘P4’ plugin
Disambiguation Community ‘Perforce’ plugin Perforce Supported ‘P4’ plugin
10
Why P4Java Latest features The ‘P4’ plugin
Efficient use of Perforce to reduce server load. P4Java Pure Java solution No ‘P4’ executable to install and keep up-to-date. Latest features Streams, sync and clean up options
11
Getting started First the basics…
© 2016 CloudBees, Inc. All Rights Reserved
12
Configure a basic connection Managing Workspaces
Getting started Configure a basic connection Managing Workspaces Source code management All from the perspective of Jenkins Freestyle Job and Pipeline DSL
13
Connection information Password credentials
Perforce address and port workshop.perforce.com:1666 Password credentials Username Password ID (useful to reference in the DSL) Description
14
Ticket based security SSL and Trust Credentials
Perforce generated Ticket String $ p4 login –p 4E034A8812F81B38229BF8FA62B0FEB1 Location of Perforce P4TICKET file /home/pallen/.p4ticket SSL and Trust Check the SSL box to add the ssl: part to P4PORT Use p4 trust or click test to get the fingerprint
15
Jenkins and Perforce Workspaces
Workspace Management Jenkins and Perforce Workspaces © 2016 CloudBees, Inc. All Rights Reserved
16
Jenkins workspace Perforce workspace Shared root Workspaces
Location of files (on the master or slave) for Jenkins to build Perforce workspace Location where Perforce will manage the versioned an non-versioned files Shared root Recommend Perforce and Jenkins workspaces share the same root One Jenkins workspace to map to one Perforce workspace
17
View Mapping Workspace +---AceProject | +---src | +---test
| docs | libs +---BlastProject | | blast.jar //depot/AceProject/... -//depot/AceProject/docs/... -//depot/AceProject/libs/... //depot/BlastProject/libs/...
18
Workspace //depot/AceProject/... -//depot/AceProject/docs/...
-//depot/AceProject/libs/... //depot/BlastProject/libs/... //{client}/Ace/... -//{client}/Ace/docs/... -//(client}/Ace/libs/... //{client}/Ace/plugins/...
19
Perforce workspace Jenkins Workspace Workspace +---AceProject
| src | test | docs | libs +---BlastProject | | blast.jar Jenkins Workspace +---Ace | src | test | | | plugins | | | | | blast.jar
20
Variable expansion
21
SCM Stages Populate Label Publish
22
Populate Auto Force Clean
23
Label Automatic label View Description Label on success
24
Publish Workspace setup Narrow views Read/Write access Virtual streams
25
Polling, Triggers and Reviews
Still polling? © 2016 CloudBees, Inc. All Rights Reserved
26
Polling vs Triggers Pin Filter Incremental builds
27
Swarm Reviews Configuration Callbacks Browsing
28
Classic Jobs Walkthrough or demo
29
Pipeline Walkthrough or demo
30
P4 command access for Groovy
P4 Groovy P4 command access for Groovy © 2016 CloudBees, Inc. All Rights Reserved
31
P4 Groovy Walkthrough or demo
32
Questions
33
© 2016 CloudBees, Inc. All Rights Reserved
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.