Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/plan/HarbormasterBuildPlanBehavior.php
Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Lines | $behaviors = array( | ||||
'You can change this behavior if you do not want to wait for this '. | 'You can change this behavior if you do not want to wait for this '. | ||||
'build, or do not care if it fails.')) | 'build, or do not care if it fails.')) | ||||
->setName(pht('Affects Buildable')) | ->setName(pht('Affects Buildable')) | ||||
->setOptions($aggregate_options), | ->setOptions($aggregate_options), | ||||
id(new self()) | id(new self()) | ||||
->setKey(self::BEHAVIOR_RESTARTABLE) | ->setKey(self::BEHAVIOR_RESTARTABLE) | ||||
->setEditInstructions( | ->setEditInstructions( | ||||
pht( | pht( | ||||
'Usually, builds may be restarted. This may be useful if you '. | 'Usually, builds may be restarted by users who have permission '. | ||||
'suspect a build has failed for environmental or circumstantial '. | 'to edit the related build plan. (You can change who is allowed '. | ||||
'reasons unrelated to the actual code, and want to give it '. | 'to restart a build by adjusting the "Runnable" behavior.)'. | ||||
'another chance at glory.'. | "\n\n". | ||||
'Restarting a build may be useful if you suspect it has failed '. | |||||
'for environmental or circumstantial reasons unrelated to the '. | |||||
'actual code, and want to give it another chance at glory.'. | |||||
"\n\n". | "\n\n". | ||||
'If you want to prevent a build from being restarted, you can '. | 'If you want to prevent a build from being restarted, you can '. | ||||
'change the behavior here. This may be useful to prevent '. | 'change when it may be restarted by adjusting this behavior. '. | ||||
'accidents where a build with a dangerous side effect (like '. | 'This may be useful to prevent accidents where a build with a '. | ||||
'deployment) is restarted improperly.')) | 'dangerous side effect (like deployment) is restarted '. | ||||
'improperly.')) | |||||
->setName(pht('Restartable')) | ->setName(pht('Restartable')) | ||||
->setOptions($restart_options), | ->setOptions($restart_options), | ||||
id(new self()) | id(new self()) | ||||
->setKey(self::BEHAVIOR_RUNNABLE) | ->setKey(self::BEHAVIOR_RUNNABLE) | ||||
->setEditInstructions( | ->setEditInstructions( | ||||
pht( | pht( | ||||
'To run a build manually, you normally must have permission to '. | 'To run a build manually, you normally must have permission to '. | ||||
'edit the related build plan. If you would prefer that anyone who '. | 'edit the related build plan. If you would prefer that anyone who '. | ||||
Show All 25 Lines |