Bug #52276

Task defined in an Application can't be removed for a deployment?

Added by Thomas Allmer about 8 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Target version:
-
Start date:
2013-09-25
Due date:
% Done:

0%

Estimated time:

Description

<?php
    $workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
    $deployment->setWorkflow($workflow);

    $node = new \TYPO3\Surf\Domain\Model\Node('[...]');
    $node->setHostname('[...]');
    $node->setOption('username', '[...]');
    $node->setOption('password', '[...]');

    $application = new \TYPO3\Surf\Application\TYPO3\Neos();

    $application->setDeploymentPath('[...]');
    $application->setOption('repositoryUrl', '[...]');

    $application->setOption('composerCommandPath', ''); //why is this needed?

    $application->setOption('packageMethod', 'git');
    $application->setOption('transferMethod', 'rsync');
    $application->setOption('updateMethod', NULL);    

    $application->setOption('keepReleases', 2);
    $application->addNode($node);

    $deployment->addApplication($application);

    // can't remove a task?
    $deployment->getWorkflow()->removeTask('typo3.surf:typo3:neos:importsite');

?>
#1

Updated by Thomas Allmer about 8 years ago

ignore this

$application->setOption('composerCommandPath', ''); //why is this needed?

#2

Updated by Helmut Hummel almost 6 years ago

  • Status changed from New to Rejected

Tasks can only be removed in the deployment callback.

See https://github.com/TYPO3/Surf/blob/master/README.md#custom-tasks-in-deployment-configurations for an example.

Development of TYPO3 Surf now moved to Github. If you think this is still relevant, please open a bug report or feature request here:

https://github.com/TYPO3/Surf

Also available in: Atom PDF