Perforce Public Knowledge Base - Preventing Job Closure on Submit
Reset Search
 

 

Article

Preventing Job Closure on Submit

« Go Back

Information

 
Problem

I would like to prevent jobs from being closed automatically when they are linked to a changelist being submitted.

Solution

You can customize your Jobspec Presets field to change the default behavior on a submit.

The standard Jobspec Presets field looks like:

Presets:

     Status open

     User $user

     Date $now

     Description $blank

To disable Job Closure, make this change:

Presets:
     Status open, fix/same

This will change the default behavior of p4 fix, p4 change, and p4 submit to leave job status unchanged for any open job when submitting a changelist. Notice the use the special fixStatus of same.  Other fixStatus's can be created and used, see the System Administrators manual Jobspec section for more information about fixStatus's.

Additional customization around Job fix behavior can be provided by custom "fix triggers" as documented in the System Administrator's guide "Scripting Perforce" section.


Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255