Skip to content

Perforce - Steps

Steps

Steps

Process steps in the Perforce plug-in

Perforce Changelog

Perform a Perforce changelog. By default this will be between the previous buildlife and the current one.

NameTypeDescriptionRequired
Changes URLStringNo
End DateStringEnd changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No
Save Changes in DatabaseBooleanSave the changes in the database for reporting on the build life changes tab. You usually only want to save them if you are running the changelog since the previous build.No
Source ConfigNo
Start DateStringStart changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No

Perforce Checkout

Perform a Perforce login, create client, getclientinfo, set workdir, sync as indicated by source configuration

NameTypeDescriptionRequired
DateStringDate of sourcecode to checkout (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyyOR milliseconds since Unix Epoch)No
Source ConfigNo

Perforce Cleanup

Perform a cleanup of the current working directory

NameTypeDescriptionRequired
Source ConfigNo

Perforce Label

if (label =~ /[@#*%\s]/) { errors.label = Label name can not contain @#*% or any white-space characters! }``

NameTypeDescriptionRequired
Depot PathsStringA comma-separated list of depot paths to use when labeling filesNo
LabelStringThe label to apply to the sourceYes
MessageStringAn optional message to use when applying the labelNo
Source ConfigNo

Perforce Quiet Period

Perform a Perforce changelog for quiet period detection and publish the results.

NameTypeDescriptionRequired
End DateStringEnd changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No
Source ConfigNo
Start DateStringStart changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No

Roles in the Perforce plug-in

The plug-in adds these roles automatically to resources. You cannot add these roles manually.

Perforce Repository

Perforce repository configuration

NameTypeDescription
Character SetString
Command Character SetString
Command PathStringThe location of the perforce command, including the executable, if not on the system PATH
Password ScriptStringIf you wish to use a script or property lookups for your password, leave the Password field blank and enter it here.
Perforce PortStringThe hostname:port value for the Perforce server
Repository PasswordPasswordThe password to use for http(s) access to repositories
Repository UsernameStringThe username to use for http(s) access to repositories

Perforce Source Config

This is a p4 source configuration.There are three basic modes of operation: 1) Existing Clientin this mode the client will update the working directory for the current job during populate steps 2) New Client From Templatecreate a new client from the given template client. 3) New Clientthe user supplied client-specification will be used to create a new client.

NameTypeDescription
Cleanup WorkspaceBoolean
Client NameStringThe client name
Client Spec CreationEnumeration:
Client Template NameStringThe client template to use (if creating clientspec from template)
Client-SpecStringThe client specification to use (if creating new clientspec)
Directory OffsetStringOverride the root directory of the template to an offset from the current job working directory. You may use . for the current job working directory. Leave blank to have the job working directory changed to the predefined root directory of the template
Do Not Limit Labels to Client SpecBooleanSelect here if you intend to apply the same label to multiple projects. This means that a label will be applied cumulatively.
Do not update have listBooleanEnable this to pass the -p option on the p4 sync command that will not update the Perforce have list. This option is only available to later versions of Perforce. Using thisat the source config level will prevent you from being able to label the source checked out.You can also set this on the individual populate workspace step.
Exclude FiltersStringExclude this list of usernames
File FiltersStringRestrict changelog to files matching these patterns. Lines start with + to include andto exclude. Wildcards *, **, and ? are allowed.
Force sync of the clientspecBooleanSelect here to force the sync of the clientspec
Integrate Command OptionBooleanToggle the -i command option for the Changelog step. When enabled, this will include changelists that affected files that were integrated with the files that were changed.
LabelStringThe label to use during checkout. This will use the label name instead of a date for the sync command
Login Before Each StepBooleanSelect here if you would like to perform a perforce login step before every job configuration step that is executed. If left unchecked we will pass the username and password to every perforce command executed. This option is necessary when configuring perforce with ldap.
Preserve Unlabeled FilesBooleanSelect here if you are synchronizing the source using a label and you want to keep any files in the workspace that do not have that label. This option facilitates patch builds.
RepositorySelect the Perforce Repository