TYPO3\Surf\Task\Git\TagTask

class TagTask

A task which can be used to tag a git repository and its submodules

It takes the following options:

  • tagName - The tag name to use
  • description - The description for the tag
  • recurseIntoSubmodules - If true, tag submodules as well (optional)
  • submoduleTagNamePrefix - Prefix for the submodule tags (optional)
Example:
$workflow
->setTaskOptions(‘TYPO3SurfTaskGitTagTask’, [
‘tagName’ => ‘earth2’, ‘description’ => ‘Another release to save the planet’, ‘recurseIntoSubmodules’ => true, ‘submoduleTagNamePrefix’ => ‘sub-‘

]

]

);

property shell

protected ShellCommandService

execute(Node $node, Application $application, Deployment $deployment, $options = [])

Execute this task

Parameters:
simulate(Node $node, Application $application, Deployment $deployment, $options = [])

Simulate this task

Parameters:
validateOptions($options)
Parameters:
  • $options (array) –
processOptions($options, Deployment $deployment)

Replace placeholders in option values and set default values

Parameters:
  • $options (array) –
  • $deployment (Deployment) –
Returns:

array

setShellCommandService(ShellCommandService $shellCommandService)
Parameters:
rollback(Node $node, Application $application, Deployment $deployment, $options = [])

Rollback this task

Parameters:
configureOptions($options = [])
Parameters:
  • $options (array) –
Returns:

array

resolveOptions(OptionsResolver $resolver)
Parameters:
  • $resolver (OptionsResolver) –