Edit the jobs template.
p4 [g-opts] jobspec
p4 [g-opts] jobspec [-i]
p4 [g-opts] jobspec -o
The p4 jobspec
command presents the
Helix Server
administrator with a form in which job fields can be edited, created,
deleted, and refined.
Do not confuse the names of the fields in the p4
jobspec
form with the names of the fields within a job.
The fields in the p4 jobspec
form are used to store
information about the fields in the p4 jobs
form.
Field Name | Description |
---|---|
|
A list of field definitions for your site’s jobs, one field per line. Each line is of the form code name datatype length fieldtype.
|
|
Contains a lists of fields and valid values for
Enter one line for each field of datatype
|
|
Contains a list of fields and their default values for each
field that has a fieldtype of Each line must contain the field name and the default value, separated by a space. For example:
Any one-line string can be used, or one of three built-in variables:
See Usage Notes for special considerations for field 102. |
|
Textual comments that appear at the top of each See Usage Notes for special considerations for these comments if your users need to enter jobs through P4V, the Helix Visual Client. |
|
Read the jobspec form from standard input. |
|
Write the jobspec form to standard output. |
|
See Global Options. |
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
|
Do not attempt to change, rename, or redefine fields 101 through
105. These fields are used by
Helix Server
and should not be deleted or changed. Only use p4
jobspec
to add new fields (106 and above) to your
jobs.
Field 101 is required by Helix Server and cannot be renamed or deleted.
Fields 102 through 105 are reserved for use by
Helix Server
applications. Although it is possible to rename or delete these
fields, it is highly undesirable to do so.
Helix Server
applications may continue to set the value of field 102 (the
Status:
field) to closed
(or some other
value defined in the Presets:
for field 102) upon
changelist submission, even if the administrator has redefined field
102 to for use as a field that does not contain closed
as a permissible value, leading to unpredictable and confusing
results.
Comments:
fields is the only
information available to your users to tell them how to fill in the job
form, and is also used by
P4V, the
Helix Visual Client , to display TooTips. Make your comments complete
and understandable.The Presets:
entry for the job status field (field 102)
has a special syntax for providing a default fix status for p4 fix
, p4 change
-s, and
p4 submit
-s.
By default, a job’s status is set to closed after you use p4 fix
, p4 change
, or p4 submit
. To change
the default fix status from closed
to some other
fixStatus
(assuming that you have defined the
fixStatus
as a valid select
setting
in the Values:
field), use the special syntax of
in the jobStatus
,fix/fixStatus
Presets:
field for field 102 (job status). To
change the behavior of p4
fix
, p4
change
, and p4
submit
to leave job status unchanged, use the
special fixStatus
of same
.
To create, edit, or view a job |
|
To attach a job to a changelist |
|
To list jobs |
|
To list jobs attached to specific changelists or changelists attached to specific jobs |